Miss any of our Open RFC calls?Watch the recordings here! »

strip-shebang

1.0.2 • Public • Published

strip-shebang Build Status

Strip shebang (eg. #!/bin/sh) from a string

Install

$ npm install --save strip-shebang

Usage

const fs = require('fs');
const stripShebang = require('strip-shebang');
 
const str = fs.readFileSync('bin', 'utf8');
//=> #!/usr/bin/env node
//=> console.log('unicorns');
 
stripShebang(str);
//=>
//=> console.log('unicorns');

License

MIT © Sindre Sorhus

Install

npm i strip-shebang

DownloadsWeekly Downloads

13

Version

1.0.2

License

MIT

Last publish

Collaborators

  • avatar