You can see below the API reference of this module.
Creates a new Gpm instance.
- String|Object
packageObj: The git url, the npm package name or a package.json-like object. - Object
options: An object containing the following fields: url_type(String): A value interpreted bygit-url-parse(default:"ssh").dest(String): The destination path (defaults toprocess.cwd()).nm_dest(String): The node module folder name (defaults to 'node_modules').auto(Boolean): Iftrue, a new directory will be created in the destination directory (default:true).is_dev(Boolean): Iftrue, the dev dependencies will be installed as well (default:false).depth(Number): The dependency tree depth (the other dependencies being installed vianpm). Default isInfinity.version(String): The dependency version.
- Gpm The
Gpminstance.
Gets the module package.json object.
- Function
callback: The callback function.
Gets the git url of the package.
- Function
callback: The callback function.
Gets the path to the repository.
- String The path to the repository.
Runs a script from scripts (package.json).
- String
task: What npm task to run. - Function
callback: The callback function.
Executes a command in the repository.
- String
command: The command to execute. - Function
callback: The callback function.
Returns the requested dependencies for installation
- Array A list with the dependencies whose installation was required
Installs the input package(s).
- Function
callback: The callback function. - Function
progress: The progress function.
Installs the current package dependencies.
- Function
callback: The callback function. - Function
progress: The progress function.