rollup-plugin-hashbang
v3.0.0
Published
Preserve hashbang and make output file executable.
Downloads
44,967
Readme
rollup-plugin-hashbang
Install
npm i rollup-plugin-hashbang -D
Usage
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.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
rollup-plugin-hashbang © EGOIST, Released under the MIT License. Authored and maintained by EGOIST with help from contributors (list).
egoist.moe · GitHub @EGOIST · Twitter @_egoistlily