Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including language-command with all npm packages installed. Try it out:

var languageCommand = require("language-command")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

language-command v1.0.0

Look up the command for executing a program in any language.

Language Command

NPM version Gittip

Look up the command for executing a program in any language. Uses the programming language names from language-map and will always generate a command that cleans up after itself (leaves no temporary files) when executed.


npm install language-command --save


var command = require('language-command');

command('JavaScript', 'test.js', '"test"');
//=> "node test.js \"test\""


  • Windows support is likely non-existant. If anyone can help make the repository work across OSes, it'd be greatly appreciated.
  • Should it be possible to set paths to executables?
  • The test directory uses underscores instead of spaces because some command line compilers had trouble with spaces.



RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free