{"name":"npm-programmatic","version":"0.0.11","description":"Use NPM commands programmatically","main":"index.js","scripts":{"test":"mocha --recursive ./test/**/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/Manak/npm-programmatic.git"},"keywords":["NPM","Programmatic","npm","programmatic"],"author":{"name":"manak"},"license":"ISC","bugs":{"url":"https://github.com/Manak/npm-programmatic/issues"},"homepage":"https://github.com/Manak/npm-programmatic#readme","devDependencies":{"mocha":"^2.5.3","should":"^9.0.2"},"dependencies":{"bluebird":"^3.4.1"},"gitHead":"55ab157b0385773d696ba68b47a3aa29465ab6bd","_id":"npm-programmatic@0.0.11","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"manak","email":"manak.kapoor@gmail.com"},"dist":{"integrity":"sha512-c+aYd88mS3GzlfbQxcAXYswZuWVy0Q6GashJAeHX3BN+CavyktF/2lf9JmPuL4qVe8DRPuZ5hwojZNxd4qoB3A==","shasum":"d6c880e3399b1a8ba507d3878d7b6c8ab665ec00","tarball":"http://registry-npm.ywwl.com/npm-programmatic/download/npm-programmatic-0.0.11.tgz","fileCount":7,"unpackedSize":9526,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbSWVyCRA9TVsSAnZWagAAwAYP/RqsrUymtMI90hCErBoK\nzQgTgdotLoL6qcqN3O7lu0kWwI2COp7bPnQ+/5DVCjQbZKMvb5w6zQhzqVuy\nO6iOhstzQTAWmsi+uuN4z1inWYMrZCzm8eeSUSu3NxP618gZwsHLUjs4MuSV\nMQvPLMmVm7r1FLgES0DQ/Du+uzR/Hw53gFDzLEDzD5hPN8+JPMoHcYAkPebZ\nl85oZC9d2aHgDpEmwquz2KKfxwgecM338Els2X6CZ1Lz2hhix6Q9EHimF/W1\nzQCxjGIdW7926w8asTBnqjQ6/ggwYdqSvbiq4B0QBGrGHOtVLqZ8VfGPzpLQ\nvgqEAzZ0wMqdzq65dKyibh44WDum5grkGc0pP/nzCD+BLXPHWbZ+pnOBU6nP\nNw5AzM6bY2WYPSc6/Jlmr0byJGjet8lFkkVcHRrPt0me633bELY6saWv1FAK\nwAkmE6K0ZXeTECERyt0nU1+o41bIVMnqcIlZNWEUCOgDViL0RdxU8UKu0mCf\nPNa06FWpLWhWW9oeSSxv8o+JKSmPoN+1NBfRx6u+fWoX7UdJ8QhLufvr1KYI\nePPfiJWrNW49MbjAki8m3mp5q+Mut8C/36nh7J+yIl0NZyjjrl8wd2ujeu9i\nRgPVtrChhIulVh9n19+4HLKskde19uDqts8gSCmoztPV5vVRq9FfBa83IShW\n0yFC\r\n=Js5l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBZVzhpnzguczd1Wfm8ZqUSdEjbC+q6q2xSrrczGFlSQIgDll7eW434yToBvXys1/72AizyHtkb5kxQUMKtKmhZTY="}],"size":2834,"noattachment":false,"key":"/npm-programmatic/-/npm-programmatic-0.0.11.tgz"},"maintainers":[{"name":"manak","email":"manak.kapoor@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-programmatic_0.0.11_1531536754715_0.12923457084713785"},"_hasShrinkwrap":false,"readme":"# npm-programmatic [![Build Status](https://travis-ci.org/Manak/npm-programmatic.svg?branch=master)](https://travis-ci.org/Manak/npm-programmatic)   \n[![NPM](https://nodei.co/npm/npm-programmatic.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/npm-programmatic/)    \n\nnpm-programmatic is a library that allows you to access npm commands programmatically from javascript\n## Usage\nEvery function returns a Bluebird promise.   \nCWD refers to current working directory, allowing you to ensure the command executes in a certain folder in the filesystem.\nIf output is set, the output of npm will be shown in the console.\n\n## Installation of Packages\n\n``` \n    npm.install(packages, opts).then(function)\n```\n| Name        | Type           | Value  |\n| ------------- |:-------------:| -----:|\n| packages      | Array      |   packages to be installed |\n| opts      | Object | save:true/false; global:true/false; cwd:string; saveDev:true/false; noOptional:true/false; legacyBundling: true/false; output:true/false|\n\n### Example\n``` \n    var npm = require('npm-programmatic');\n    npm.install(['left-pad'], {\n        cwd:'/path/to/my/project',\n        save:true\n    })\n    .then(function(){\n        console.log(\"SUCCESS!!!\");\n    })\n    .catch(function(){\n        console.log(\"Unable to install package\");\n    });\n```\n\n## Unistallation of Packages\n\n``` \n    npm.uninstall(packages, opts).then(function)\n```\n| Name        | Type           | Value  |\n| ------------- |:-------------:| -----:|\n| packages      | Array      |   packages to be uninstalled |\n| opts      | Object | save:true/false; global:true/false; cwd:string; saveDev:true/false; output:true/false|\n\n### Example\n``` \n    var npm = require('npm-programmatic');\n    npm.uninstall(['left-pad'], {\n        cwd:'/path/to/my/project',\n        save:true\n    })\n    .then(function(){\n        console.log(\"SUCCESS!!!\");\n    })\n    .catch(function(){\n        console.log(\"Unable to uninstall package\");\n    });\n```\n\n\n## List Installed Packages\n\n``` \n    npm.list(path).then(function)\n```\n| Name        | Type           | Value  |\n| ------------- |:-------------:| -----:|\n| path      | String      |   path at which to look |\n\n### Example\n``` \n    var npm = require('npm-programmatic');\n    npm.list('/path/to/project')\n    .then(function(arrayOfPackages){\n        console.log(arrayOfPackages);\n    })\n    .catch(function(){\n        console.log(\"Unable to uninstall package\");\n    });\n```\n\n## Tests\ninstall mocha and dev dependencies. Then run \n``` npm test    ```\n","publish_time":1531536754787,"_cnpm_publish_time":1531536754787,"dist-tags":{"latest":"0.0.12"}}