Skip to content

nachos/package-manager

Repository files navigation

package-manager

Nachos package manager

Linux OSX Windows Coverage Dependencies DevDependencies
Coverage Status

Have a problem? Come chat with us!

Join the chat at https://gitter.im/nachos/packages

Installation

As cli tool

$ [sudo] npm install nachos-package-manager -g

Programmatically

$ [sudo] npm install nachos-package-manager --save

Usage

cli

Example

$ nachos install your-package

Options

$ 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

Programmatically

Initialize

var nachosPackagesManager = require('nachos-package-manager');

install(packageName)

Install a package

nachosPackagesManager.install('your-package')
  .then(function (folder) {
    // folder -> user/home/.nachos/packages/your/package
  });

uninstall(packageName)

Unistall a package

nachosPackagesManager.uninstall('your-package')
  .then(function () {
    // Uninstalled successfully
  });

link(source)

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(source)

Publish a package

nachosPackagesManager.publish('path/to/your-package')
  .then(function () {
    // Published successfully
  });

login(data)

Login to nachos

nachosPackagesManager.login({email: '[email protected]', password: 'yourP@$$w0rd'})
  .then(function () {
    // Logged in successfully
  });

Run Tests

$ npm test

License

MIT

About

The official nachos package manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •