Spawn a terminal in a given directory
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.js
package.json
test.js

README.md

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);
});