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

language-detect-exec

Language Detect Exec

NPM version Build status Test coverage Gittip

Automatically execute a file in a known programming language based on the filename from language-command.

Installation

npm install language-detect-exec --save

Usage

var exec = require('language-detect-exec');
 
exec('test.js', function (err, stdout, stderr) {
  console.log(stdout);
});

License

MIT