一覧へ戻る
egoist/rollup-plugin-hashbang(新しいタブで開きます)
主要言語: TypeScript
Add hashbang `#!` support to Rollup and make output file executable
- star 数
- 16
- watcher 数
- 1
- fork 数
- 3
- issue 数
- 13
- 最終更新
- 2023/10/08
主要言語: TypeScript
Add hashbang `#!` support to Rollup and make output file executable
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