rollup-plugin-hashbang
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

rollup-plugin-hashbang

NPM version NPM downloads

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. 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

Readme

Keywords

none

Package Sidebar

Install

npm i rollup-plugin-hashbang

Weekly Downloads

2,114

Version

3.0.0

License

MIT

Unpacked Size

6.6 kB

Total Files

5

Last publish

Collaborators

  • egoist
  • rem