{"_id":"base-npm-prompt","_rev":"6-17c8de03f07e04c4478bba6729848785","name":"base-npm-prompt","description":"Extends the base-npm plugin with prompts for intalling dependencies as a part of a build-workflow.","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"base-npm-prompt","description":"Extends the base-npm plugin with prompts for intalling dependencies as a part of a build-workflow.","version":"0.1.0","homepage":"https://github.com/node-base/base-npm-prompt","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-npm-prompt.git"},"bugs":{"url":"https://github.com/node-base/base-npm-prompt/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"debug":"^2.2.0"},"devDependencies":{"gulp-format-md":"^0.1.9","mocha":"^2.4.5"},"keywords":[],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"reflinks":["verb","base"],"lint":{"reflinks":true}},"gitHead":"a0c780fbb5876b727488019bf2c18daf3e83f847","_id":"base-npm-prompt@0.1.0","_shasum":"deb15fb48b021c308e5e986fc988c7e3e1f7dd89","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"deb15fb48b021c308e5e986fc988c7e3e1f7dd89","tarball":"https://registry.npmjs.org/base-npm-prompt/-/base-npm-prompt-0.1.0.tgz","integrity":"sha512-uP1r4hSA5CFovm3LTRM+3bCQkdDr7CMd33euVl0hHv+zFRA0pC4C4GkfKFc+qjQu52UoMpzFtuVwIvXLP/YAvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHrpCZ0dQ9QHl6sxX1fGR2iXTTKOB1v3xG7ZT+D6YRUWAiEAjWZgxPNAKJ05KRuC9fGudmIBzkRgblNrZh6k8a/BNhY="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/base-npm-prompt-0.1.0.tgz_1463670850572_0.3546787714585662"}},"0.2.0":{"name":"base-npm-prompt","description":"Extends the base-npm plugin with prompts for intalling dependencies as a part of a build-workflow.","version":"0.2.0","homepage":"https://github.com/node-base/base-npm-prompt","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-npm-prompt.git"},"bugs":{"url":"https://github.com/node-base/base-npm-prompt/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"async-each":"^1.0.0","base-questions":"^0.6.6","define-property":"^0.2.5","extend-shallow":"^2.0.1","is-valid-app":"^0.1.1","lazy-cache":"^2.0.1","log-utils":"^0.1.4"},"devDependencies":{"base":"^0.11.0","base-npm":"^0.4.0","base-pkg":"^0.2.4","delete":"^0.3.2","gulp-format-md":"^0.1.9","mocha":"^2.5.3","pkg-store":"^0.2.2"},"keywords":[],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"reflinks":["base","verb","base-questions"],"lint":{"reflinks":true}},"gitHead":"90e7ca45d6de57dcce60ebaa0524e1f57593ccad","_id":"base-npm-prompt@0.2.0","_shasum":"afef2ce9268e2170fd76f592dff1a61d2044dcbd","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.1.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"afef2ce9268e2170fd76f592dff1a61d2044dcbd","tarball":"https://registry.npmjs.org/base-npm-prompt/-/base-npm-prompt-0.2.0.tgz","integrity":"sha512-Y8PQoLSan0BHD142hdQU5w4TAP+7pk7Vn8sSxYRtKqc76YEHftk8cFW8FYBWcKGCg3C40MPuSL/u5hM9M4yZFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0UPpuy4y76sUJIvid60h1RnC9qJVlyotAFecZIWjXFAIhAMTDMifKAJDcP2MVytyTl0PXEXDbHvbYvzAC8Rd2BtL3"}]},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/base-npm-prompt-0.2.0.tgz_1466090720026_0.37824299023486674"}},"0.2.1":{"name":"base-npm-prompt","description":"Extends the base-npm plugin with prompts for intalling dependencies as a part of a build-workflow.","version":"0.2.1","homepage":"https://github.com/node-base/base-npm-prompt","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-npm-prompt.git"},"bugs":{"url":"https://github.com/node-base/base-npm-prompt/issues"},"license":"MIT","files":["index.js","LICENSE","README.md","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"async-each":"^1.0.0","base-questions":"^0.7.3","define-property":"^0.2.5","extend-shallow":"^2.0.1","is-valid-app":"^0.2.0","lazy-cache":"^2.0.1","log-utils":"^0.2.1"},"devDependencies":{"base":"^0.11.0","base-npm":"^0.4.0","base-pkg":"^0.2.4","delete":"^0.3.2","gulp-format-md":"^0.1.9","mocha":"^2.5.3","pkg-store":"^0.2.2"},"keywords":["api","app","application","base","baseplugin","building-blocks","create","framework","npm","plugin","plugins","prompt","tool","toolkit","tools"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"reflinks":["base","base-questions","verb"],"lint":{"reflinks":true}},"gitHead":"678ac509de86926b4652542ed368f6cb15f1e545","_id":"base-npm-prompt@0.2.1","_shasum":"a6a434fac1b41309d357385d0f87df6fc1ee2427","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a6a434fac1b41309d357385d0f87df6fc1ee2427","tarball":"https://registry.npmjs.org/base-npm-prompt/-/base-npm-prompt-0.2.1.tgz","integrity":"sha512-DxEXuXoQqb5DBIIwmtT5X5VyzZKQNmm50jNRDgwkLUaYwT5dvxII7E515miHldWr1Ayj8aRxitH6+6pQJ6EpbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAoWYjx7i6xP7UKgIQXPe4vZUVAL7WMOx3iUfaKENmOfAiA1BA4oo/AYSLQY3qM1OHlwQpJePFHz5kogF55fDcN4kQ=="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/base-npm-prompt-0.2.1.tgz_1469833697167_0.6583463938441128"}}},"readme":"# base-npm-prompt [![NPM version](https://img.shields.io/npm/v/base-npm-prompt.svg?style=flat)](https://www.npmjs.com/package/base-npm-prompt) [![NPM downloads](https://img.shields.io/npm/dm/base-npm-prompt.svg?style=flat)](https://npmjs.org/package/base-npm-prompt) [![Build Status](https://img.shields.io/travis/node-base/base-npm-prompt.svg?style=flat)](https://travis-ci.org/node-base/base-npm-prompt)\n\nExtends the base-npm plugin with prompts for intalling dependencies as a part of a build-workflow.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install base-npm-prompt --save\n```\n\n## Usage\n\n```js\nvar prompt = require('base-npm-prompt');\nvar npm  require('base-npm');\nvar Base = require('base-app');\nvar app = new Base();\n\n// register the `base-npm` plugin first\napp.use(npm());\n\n// register the `base-npm-prompt` plugin\napp.use(prompt());\n```\n\nNote that if you use [base](https://github.com/node-base/base) directly you will also need to let the plugin know that it is being registered on a Base \"application\" (since `Base` can be used to create anything, like `views`, `collections` etc.).\n\n```js\nvar Base = require('base');\nvar app = new Base({isApp: true}); // <=\nvar prompt = require('base-npm-prompt');\nvar npm = require('base-npm');\n\n// register the `base-npm` plugin first\napp.use(npm());\n\n// register the `base-npm-prompt` plugin\napp.use(prompt());\n\napp.npm.prompt('dependencies', function(err) {\n  if (err) return cb(err);\n  app.npm.prompt('devDependencies', cb);\n});\n```\n\n## API\n\n### [.npm.prompt](index.js#L41)\n\nPrompts the user to ask if they want to install the packages listed on `app.cache.install.dependencies` or `app.cache.install.devDependencies` based on the given `type`.\n\n**Params**\n\n* `type` **{String}**: dependency type to install (dependencies or devDependencies)\n* `options` **{Object}**\n* `cb` **{Function}**: Callback\n\n**Example**\n\n```js\napp.npm.prompt('dependencies', function(err) {\n  if (err) return console.error(err):\n});\n```\n\n### [.npm.askInstall](index.js#L67)\n\nPrompts the user to ask if they want to install the given package(s). Requires the [base-questions](https://github.com/node-base/base-questions) plugin to be registered first.\n\n**Params**\n\n* `names` **{String|Array}**: One or more package names.\n* `options` **{Object}**\n* `cb` **{Function}**: Callback\n\n**Example**\n\n```js\napp.npm.askInstall('isobject', function(err) {\n  if (err) throw err;\n});\n```\n\n### [.npm.checkInstall](index.js#L88)\n\nPrompts the user to ask if they want to check if the given package(s) exist on npm, then install the ones that do exist. Requires the [base-questions](https://github.com/node-base/base-questions) plugin to be registered first.\n\n**Params**\n\n* `names` **{String|Array}**: One or more package names.\n* `options` **{Object}**\n* `cb` **{Function}**: Callback\n\n**Example**\n\n```js\napp.npm.checkInstall('isobject', function(err) {\n  if (err) throw err;\n});\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/node-base/base-npm-prompt/issues/new).\n\n## Building docs\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install verb && npm run docs\n```\n\nOr, if [verb](https://github.com/verbose/verb) is installed globally:\n\n```sh\n$ verb\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n## Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/node-base/base-npm-prompt/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on June 16, 2016._","maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2022-06-13T04:16:56.292Z","created":"2016-05-19T15:14:14.292Z","0.1.0":"2016-05-19T15:14:14.292Z","0.2.0":"2016-06-16T15:25:22.296Z","0.2.1":"2016-07-29T23:08:20.230Z"},"homepage":"https://github.com/node-base/base-npm-prompt","keywords":["api","app","application","base","baseplugin","building-blocks","create","framework","npm","plugin","plugins","prompt","tool","toolkit","tools"],"repository":{"type":"git","url":"git+https://github.com/node-base/base-npm-prompt.git"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/node-base/base-npm-prompt/issues"},"license":"MIT","readmeFilename":"README.md"}