shebang

Extract normalized shebang command token

npm install shebang
2 downloads in the last week
3 downloads in the last month

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.

npm loves you