
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
rollup-plugin-hashbang
Advanced tools
npm i rollup-plugin-hashbang -D
With rollup.config.js:
import hashbang from "rollup-plugin-hashbang";
export default {
plugins: [hashbang()],
};
In:
#!/usr/bin/env node
console.log("hi");
Output:
#!/usr/bin/env node
"use strict";
console.log("hi");
Hashbang is preserved and the output file will be executable you don't need to chmod +x FILE to run it.
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featurerollup-plugin-hashbang © EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).
egoist.moe · GitHub @EGOIST · Twitter @_egoistlily
FAQs
Preserve hashbang and make output file executable.
The npm package rollup-plugin-hashbang receives a total of 3,540 weekly downloads. As such, rollup-plugin-hashbang popularity was classified as popular.
We found that rollup-plugin-hashbang demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.