spawn-terminal

Spawn a terminal in a given directory

npm install spawn-terminal
2 downloads in the last week
8 downloads in the last month

spawn-terminal

Spawn a terminal in a given directory, or $HOME if none provided.

OS X only for now.

API

var spawnTerminal = require('spawn-terminal').spawnTerminal;

spawnTerminal(); // open terminal in $HOME
spawnTerminal("~/foo/bar"); // open terminal in ~/foo/bar

spawnTerminal(function(dir) {
  console.log("terminal is opened @ " + dir);
});

spawnTerminal("~/tmp", function(dir) {
  console.log("terminal is opened @ " + dir);
});
npm loves you