Nachos package manager
Linux | OSX | Windows | Coverage | Dependencies | DevDependencies |
---|---|---|---|---|---|
As cli tool
$ [sudo] npm install nachos-package-manager -g
Programmatically
$ [sudo] npm install nachos-package-manager --save
$ nachos install your-package
$ nachos --help
Usage: nachos <command>
Commands:
login | l Login
install | i <package> Install a package
uninstall | uni <package> Uninstall a package
publish [path] Publish a package
link [path] Link a package
Nachos package manager
Options:
-h, --help output usage information
-V, --version output the version number
var nachosPackagesManager = require('nachos-package-manager');
Install a package
nachosPackagesManager.install('your-package')
.then(function (folder) {
// folder -> user/home/.nachos/packages/your/package
});
Unistall a package
nachosPackagesManager.uninstall('your-package')
.then(function () {
// Uninstalled successfully
});
Link a directory to nachos packages
nachosPackagesManager.link('path/to/your-package')
.then(function (data) {
/** data:
{
src: 'path/to/your/package',
dest: 'path/of/link'
}
*/
});
Publish a package
nachosPackagesManager.publish('path/to/your-package')
.then(function () {
// Published successfully
});
Login to nachos
nachosPackagesManager.login({email: '[email protected]', password: 'yourP@$$w0rd'})
.then(function () {
// Logged in successfully
});
$ npm test