node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

shebang

Shebang

Description

Node module for extracting the normalized shebang command token.

Examples

var shebang = require('shebang');
 
console.log(shebang("#!/usr/bin/ruby")) // "ruby" 
console.log(shebang("#!/usr/bin/env node")) // "node" 

Tests

npm test

License

MIT.