ndep
Node as an module dependency. Useful in sandboxed environments.
Ndep([opts])
Create new instance of Ndep
var ndep = ;
nDep.ls(callback)
nDep.list(callback)
List all local, available, stable and unstable node versions
nDep;
nDep.available(callback)
List all available node versions
nDep;
nDep.local(callback)
List all local node versions
nDep;
nDep.add(version, callback)
Add a new local node version
nDep;
nDep.rm(callback)
nDep.remove(callback)
Remove a single, array or all local node version
// remove onenDep; // remove array of versionsnDep; // remove all versions from the distPath.nDep;
nDep.set(version, callback)
Set the current node version to use. If it does not exist local it is fetched.
nDep;
nDep.fetch(version, callback)
Download and untar a node version.
nDep;
nDep.exec([opts], callback)
Call child_process.exec
with the current node version or pass in the version
with opts
.
Returns child_process.exec
instance
// call on current node versionnDepstdout; // call on different temp different node versionnDepstdout;
nDep.spawn(args, [opts])
Call child_process.spawn
with the current node version or pass in the version
with opts
.
Returns child_process.spawn
instance
// call on current node versionnDepstdout; // call on different temp different node versionnDepstdout;
License
MIT