spawn-terminal

0.0.2 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i spawn-terminal

      Weekly Downloads

      2

      Version

      0.0.2

      License

      MIT

      Last publish

      Collaborators

      • jaz303