Skip to content

Commit

Permalink
Make the bookmarklet script work with the BSD version of the tr command
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Oct 27, 2023
1 parent 8570d1d commit 7afa039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"test:ci": "npm run coverage",
"coverage": "NODE_ENV=development nyc --reporter=lcov --reporter=text --all -- npm test && echo google-chrome coverage/lcov-report/index.html",
"build": "rollup --config rollup.config.js --sourcemap --format umd --name uninspected -o uninspected.js lib/uninspected.js",
"bookmarklet": "npm run build && (echo -n '<!DOCTYPE html><html><body><a href=\"javascript:' && <uninspected.js sed -e 's/&/\\&amp;/g;' | sed -e 's/\"/\\&quot;/g;' | tr --delete '\\n' && echo -n '%0a;console=uninspected;void(null);\">Replace the console object with uninspected</a></body></html>') > bookmarklet.html",
"bookmarklet": "npm run build && (echo -n '<!DOCTYPE html><html><body><a href=\"javascript:' && <uninspected.js sed -e 's/&/\\&amp;/g;' | sed -e 's/\"/\\&quot;/g;' | tr -d '\\n' && echo -n '%0a;console=uninspected;void(null);\">Replace the console object with uninspected</a></body></html>') > bookmarklet.html",
"prepublishOnly": "npm run bookmarklet",
"preversion": "offline-github-changelog --next=${npm_new_version} > CHANGELOG.md && git add CHANGELOG.md"
},
Expand Down

0 comments on commit 7afa039

Please sign in to comment.