Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Spawn a terminal in a given directory
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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);
});
Something went wrong with that request. Please try again.