node package manager

shebang

Extract normalized shebang command token

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.