{"_id":"promptly","_rev":"142654","name":"promptly","description":"Simple command line prompting utility","dist-tags":{"latest":"3.2.0"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"time":{"modified":"2021-06-03T11:27:57.000Z","created":"2013-01-26T18:49:47.876Z","3.2.0":"2020-11-06T01:03:36.928Z","3.1.0":"2020-10-07T20:17:19.174Z","3.0.3":"2018-01-17T03:37:18.433Z","3.0.2":"2018-01-15T02:06:46.223Z","3.0.1":"2018-01-15T00:16:09.338Z","3.0.0":"2018-01-15T00:10:35.549Z","2.2.0":"2017-03-27T21:54:40.294Z","2.1.0":"2016-08-14T15:14:04.531Z","2.0.0":"2016-06-18T22:58:25.602Z","1.1.0":"2016-03-06T01:03:43.818Z","1.0.0":"2016-01-03T12:11:25.604Z","0.2.1":"2015-01-29T10:17:38.906Z","0.2.0":"2013-06-04T20:28:44.607Z","0.1.0":"2013-01-28T22:53:42.399Z","0.0.1":"2013-01-27T16:42:20.951Z","0.0.0":"2013-01-26T18:49:47.876Z"},"users":{"andris":true,"pid":true,"davidchase":true,"amobiz":true,"hville":true,"ahmed-dinar":true,"dzhou777":true,"3creatives":true,"andygreenegrass":true,"chinawolf_wyp":true,"enshaednhiker":true,"pacoelayudante":true,"fabioper":true,"bsdprojects":true,"jream":true,"wolfram77":true,"morewry":true,"noita":true,"lassevolkmann":true},"author":{"name":"André Cruz","email":"andre@moxy.studio"},"repository":{"type":"git","url":"git+ssh://git@github.com/moxystudio/node-promptly.git"},"versions":{"3.2.0":{"name":"promptly","version":"3.2.0","description":"Simple command line prompting utility","keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"André Cruz","email":"andre@moxy.studio"},"homepage":"https://github.com/moxystudio/node-promptly","repository":{"type":"git","url":"git+ssh://git@github.com/moxystudio/node-promptly.git"},"license":"MIT","main":"index.js","scripts":{"lint":"eslint .","test":"jest --env node --coverage --runInBand","prerelease":"npm t && npm run lint","release":"standard-version","postrelease":"git push --follow-tags origin HEAD && npm publish"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{"read":"^1.0.4"},"devDependencies":{"@commitlint/cli":"^7.0.0","@commitlint/config-conventional":"^7.0.1","eslint":"^5.3.0","eslint-config-moxy":"^7.0.1","husky":"^1.3.1","jest":"^24.5.0","lint-staged":"^8.1.5","p-series":"^2.0.0","standard-version":"^5.0.1"},"gitHead":"ea406a976e5f15fd5f9803dfe0098dbe24886182","bugs":{"url":"https://github.com/moxystudio/node-promptly/issues"},"_id":"promptly@3.2.0","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"shasum":"a5517fbbf59bd31c1751d4e1d9bef1714f42b9d8","size":5170,"noattachment":false,"key":"/promptly/-/promptly-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-3.2.0.tgz"},"_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"directories":{},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promptly_3.2.0_1604624616774_0.3143860844437585"},"_hasShrinkwrap":false,"publish_time":1604624616928,"_cnpm_publish_time":1604624616928},"3.1.0":{"name":"promptly","version":"3.1.0","description":"Simple command line prompting utility","keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"André Cruz","email":"andre@moxy.studio"},"homepage":"https://github.com/moxystudio/node-promptly","repository":{"type":"git","url":"git+ssh://git@github.com/moxystudio/node-promptly.git"},"license":"MIT","main":"index.js","scripts":{"lint":"eslint .","test":"jest --env node --coverage --runInBand","prerelease":"npm t && npm run lint","release":"standard-version","postrelease":"git push --follow-tags origin HEAD && npm publish"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{"read":"^1.0.4"},"devDependencies":{"@commitlint/cli":"^7.0.0","@commitlint/config-conventional":"^7.0.1","eslint":"^5.3.0","eslint-config-moxy":"^7.0.1","husky":"^1.3.1","jest":"^24.5.0","lint-staged":"^8.1.5","p-series":"^2.0.0","standard-version":"^5.0.1"},"gitHead":"4b273f85e52e5dfa58c9db68700b467aad162f28","bugs":{"url":"https://github.com/moxystudio/node-promptly/issues"},"_id":"promptly@3.1.0","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"shasum":"7f723392f527f032dc295991060d3be612186ea1","size":5069,"noattachment":false,"key":"/promptly/-/promptly-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-3.1.0.tgz"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promptly_3.1.0_1602101839081_0.9203219274771126"},"_hasShrinkwrap":false,"publish_time":1602101839174,"_cnpm_publish_time":1602101839174},"3.0.3":{"name":"promptly","version":"3.0.3","description":"Simple command line prompting utility","keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"André Cruz","email":"andre@moxy.studio"},"homepage":"https://github.com/moxystudio/node-promptly","repository":{"type":"git","url":"git+ssh://git@github.com/moxystudio/node-promptly.git"},"license":"MIT","main":"index.js","files":["lib"],"scripts":{"lint":"eslint .","test":"jest --env node --coverage","prerelease":"npm t && npm run lint","release":"standard-version","precommit":"lint-staged","commitmsg":"commitlint -e $GIT_PARAMS"},"standard-version":{"scripts":{"posttag":"git push --follow-tags origin master && npm publish"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{"pify":"^3.0.0","read":"^1.0.4"},"devDependencies":{"@commitlint/cli":"^6.0.0","@commitlint/config-conventional":"^6.0.2","eslint":"^4.3.0","eslint-config-moxy":"^4.1.0","husky":"^0.14.3","jest":"^22.0.0","lint-staged":"^6.0.0","p-series":"^1.0.0","standard-version":"^4.2.0"},"gitHead":"f804a944b68ab889b6f6187816df515962e14ddc","bugs":{"url":"https://github.com/moxystudio/node-promptly/issues"},"_id":"promptly@3.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"dist":{"shasum":"e178f722e73d82c60d019462044bccfdd9872f42","size":4809,"noattachment":false,"key":"/promptly/-/promptly-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-3.0.3.tgz"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promptly-3.0.3.tgz_1516160237375_0.8525560006964952"},"directories":{},"publish_time":1516160238433,"_hasShrinkwrap":false,"_cnpm_publish_time":1516160238433},"3.0.2":{"name":"promptly","version":"3.0.2","description":"Simple command line prompting utility","keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"André Cruz","email":"andre@moxy.studio"},"homepage":"https://github.com/moxystudio/node-promptly","repository":{"type":"git","url":"git+ssh://git@github.com/moxystudio/node-promptly.git"},"license":"MIT","main":"index.js","files":["lib"],"scripts":{"lint":"eslint .","test":"jest --env node --coverage","prerelease":"npm t && npm run lint","release":"standard-version","precommit":"lint-staged","commitmsg":"commitlint -e $GIT_PARAMS"},"standard-version":{"scripts":{"posttag":"git push --follow-tags origin master && npm publish"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{"read":"^1.0.4","strip-ansi":"^4.0.0"},"devDependencies":{"@commitlint/cli":"^6.0.0","@commitlint/config-conventional":"^6.0.2","eslint":"^4.3.0","eslint-config-moxy":"^4.1.0","husky":"^0.14.3","jest":"^22.0.0","lint-staged":"^6.0.0","p-series":"^1.0.0","standard-version":"^4.2.0"},"gitHead":"cb14d9537f7e1c536ca4e7b32dd861da7c14ad6f","bugs":{"url":"https://github.com/moxystudio/node-promptly/issues"},"_id":"promptly@3.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"dist":{"shasum":"5f628f755f079b653dbaeae2e64ceea9168e6844","size":4661,"noattachment":false,"key":"/promptly/-/promptly-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-3.0.2.tgz"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promptly-3.0.2.tgz_1515982005305_0.8828133910428733"},"directories":{},"publish_time":1515982006223,"_hasShrinkwrap":false,"_cnpm_publish_time":1515982006223},"3.0.1":{"name":"promptly","version":"3.0.1","description":"Simple command line prompting utility","keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"André Cruz","email":"andre@moxy.studio"},"homepage":"https://github.com/moxystudio/node-promptly","repository":{"type":"git","url":"git+ssh://git@github.com/moxystudio/node-promptly.git"},"license":"MIT","main":"index.js","files":["lib"],"scripts":{"lint":"eslint .","test":"jest --env node --coverage","prerelease":"npm t && npm run lint","release":"standard-version","precommit":"lint-staged","commitmsg":"commitlint -e $GIT_PARAMS"},"standard-version":{"scripts":{"posttag":"git push --follow-tags origin master && npm publish"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{"read":"^1.0.4","strip-ansi":"^4.0.0"},"devDependencies":{"@commitlint/cli":"^6.0.0","@commitlint/config-conventional":"^6.0.2","eslint":"^4.3.0","eslint-config-moxy":"^4.1.0","husky":"^0.14.3","jest":"^22.0.0","lint-staged":"^6.0.0","p-series":"^1.0.0","standard-version":"^4.2.0"},"gitHead":"96114798b5b674f21b048c411222e89938b24ce8","bugs":{"url":"https://github.com/moxystudio/node-promptly/issues"},"_id":"promptly@3.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"dist":{"shasum":"028ae0a1714607e237d48213cc5a92fbbbe78874","size":4655,"noattachment":false,"key":"/promptly/-/promptly-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-3.0.1.tgz"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promptly-3.0.1.tgz_1515975367769_0.029848351376131177"},"directories":{},"publish_time":1515975369338,"_hasShrinkwrap":false,"_cnpm_publish_time":1515975369338},"3.0.0":{"name":"promptly","version":"3.0.0","description":"Simple command line prompting utility","keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"André Cruz","email":"andre@moxy.studio"},"homepage":"https://github.com/moxystudio/node-promptly","repository":{"type":"git","url":"git+ssh://git@github.com/moxystudio/node-promptly.git"},"license":"MIT","main":"index.js","files":["lib"],"scripts":{"lint":"eslint .","test":"jest --env node --coverage --runInBand","prerelease":"npm t && npm run lint","release":"standard-version","precommit":"lint-staged","commitmsg":"commitlint -e $GIT_PARAMS"},"standard-version":{"scripts":{"posttag":"git push --follow-tags origin master && npm publish"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{"read":"^1.0.4","strip-ansi":"^4.0.0"},"devDependencies":{"@commitlint/cli":"^6.0.0","@commitlint/config-conventional":"^6.0.2","eslint":"^4.3.0","eslint-config-moxy":"^4.1.0","husky":"^0.14.3","jest":"^22.0.0","lint-staged":"^6.0.0","p-series":"^1.0.0","standard-version":"^4.2.0"},"gitHead":"3dd8e93cd505312434154049538035a87987b7a9","bugs":{"url":"https://github.com/moxystudio/node-promptly/issues"},"_id":"promptly@3.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"dist":{"shasum":"732b1852e8ffd5ad84454f7c45875c30354e7b3e","size":4636,"noattachment":false,"key":"/promptly/-/promptly-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-3.0.0.tgz"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promptly-3.0.0.tgz_1515975035343_0.8545544678345323"},"directories":{},"publish_time":1515975035549,"_hasShrinkwrap":false,"_cnpm_publish_time":1515975035549},"2.2.0":{"name":"promptly","version":"2.2.0","description":"Simple command line prompting utility","main":"index.js","dependencies":{"read":"^1.0.4"},"devDependencies":{"async":"^2.0.0","expect.js":"^0.3.1","mocha":"^3.0.2"},"scripts":{"test":"mocha --bail"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promptly.git"},"bugs":{"url":"http://github.com/IndigoUnited/node-promptly/issues"},"keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","gitHead":"30057f243e7a6932f28f8f4d84e2f090c8ba5706","homepage":"https://github.com/IndigoUnited/node-promptly#readme","_id":"promptly@2.2.0","_shasum":"2a13fa063688a2a5983b161fff0108a07d26fc74","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.4","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"dist":{"shasum":"2a13fa063688a2a5983b161fff0108a07d26fc74","size":5793,"noattachment":false,"key":"/promptly/-/promptly-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-2.2.0.tgz"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/promptly-2.2.0.tgz_1490651679595_0.8615843416191638"},"directories":{},"publish_time":1490651680294,"_cnpm_publish_time":1490651680294,"_hasShrinkwrap":false},"2.1.0":{"name":"promptly","version":"2.1.0","description":"Simple command line prompting utility","main":"index.js","dependencies":{"read":"^1.0.4"},"devDependencies":{"async":"^2.0.0","expect.js":"^0.3.1","mocha":"^3.0.2"},"scripts":{"test":"mocha --bail"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promptly.git"},"bugs":{"url":"http://github.com/IndigoUnited/node-promptly/issues"},"keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","gitHead":"cce9331891db8b67edb13f9782917d474eeabce6","homepage":"https://github.com/IndigoUnited/node-promptly#readme","_id":"promptly@2.1.0","_shasum":"217643bd6612d58f4bb54fe7e6b4664286073cdf","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"dist":{"shasum":"217643bd6612d58f4bb54fe7e6b4664286073cdf","size":5735,"noattachment":false,"key":"/promptly/-/promptly-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-2.1.0.tgz"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/promptly-2.1.0.tgz_1471187642875_0.6146005191840231"},"directories":{},"publish_time":1471187644531,"_cnpm_publish_time":1471187644531,"_hasShrinkwrap":false},"2.0.0":{"name":"promptly","version":"2.0.0","description":"Simple command line prompting utility","main":"index.js","dependencies":{"read":"^1.0.4"},"devDependencies":{"async":"^1.5.1","expect.js":"^0.3.1","mocha":"^2.1.0"},"scripts":{"test":"mocha --bail"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promptly.git"},"bugs":{"url":"http://github.com/IndigoUnited/node-promptly/issues"},"keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","gitHead":"ca6baa0c649079e4dba1fea0588e403e329b3245","homepage":"https://github.com/IndigoUnited/node-promptly#readme","_id":"promptly@2.0.0","_shasum":"3a931586daa7f28c9409581103bb4e7bb127fa96","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"dist":{"shasum":"3a931586daa7f28c9409581103bb4e7bb127fa96","size":5555,"noattachment":false,"key":"/promptly/-/promptly-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-2.0.0.tgz"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/promptly-2.0.0.tgz_1466290703057_0.9928953393828124"},"directories":{},"publish_time":1466290705602,"_cnpm_publish_time":1466290705602,"_hasShrinkwrap":false},"1.1.0":{"name":"promptly","version":"1.1.0","description":"Simple command line prompting utility","main":"index.js","dependencies":{"read":"^1.0.4"},"devDependencies":{"async":"^1.5.1","expect.js":"^0.3.1","mocha":"^2.1.0"},"scripts":{"test":"mocha --bail"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promptly.git"},"bugs":{"url":"http://github.com/IndigoUnited/node-promptly/issues"},"keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","gitHead":"690134da05c1de3044036f130d15a2ebf23e8181","homepage":"https://github.com/IndigoUnited/node-promptly#readme","_id":"promptly@1.1.0","_shasum":"fad729f99c531a4ae397b8a68bfa973375088b5d","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"fad729f99c531a4ae397b8a68bfa973375088b5d","size":5566,"noattachment":false,"key":"/promptly/-/promptly-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-1.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/promptly-1.1.0.tgz_1457226220742_0.45868589309975505"},"directories":{},"publish_time":1457226223818,"_cnpm_publish_time":1457226223818,"_hasShrinkwrap":false},"1.0.0":{"name":"promptly","version":"1.0.0","description":"Simple command line prompting utility","main":"index.js","dependencies":{"read":"^1.0.4"},"devDependencies":{"async":"^1.5.1","expect.js":"^0.3.1","mocha":"^2.1.0"},"scripts":{"test":"mocha -R spec --bail"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promptly.git"},"bugs":{"url":"http://github.com/IndigoUnited/node-promptly/issues"},"keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","gitHead":"d79cf2ec68c4489fb6ce31cafbdbccd3f8a966a3","homepage":"https://github.com/IndigoUnited/node-promptly#readme","_id":"promptly@1.0.0","_shasum":"53cb75a4b9992893fa10e3a1c0c2d2fa9df62489","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"53cb75a4b9992893fa10e3a1c0c2d2fa9df62489","size":5486,"noattachment":false,"key":"/promptly/-/promptly-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-1.0.0.tgz"},"directories":{},"publish_time":1451823085604,"_cnpm_publish_time":1451823085604,"_hasShrinkwrap":false},"0.2.1":{"name":"promptly","version":"0.2.1","description":"Simple command line prompting utility","main":"index.js","dependencies":{"read":"~1.0.4"},"devDependencies":{"mocha":"~1.8.1","async":"~0.1.22","expect.js":"~0.2.0"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promptly"},"bugs":{"url":"http://github.com/IndigoUnited/node-promptly/issues"},"keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","gitHead":"443394313ae149ec9f3a22326cfab9c9940730ef","homepage":"https://github.com/IndigoUnited/node-promptly","_id":"promptly@0.2.1","_shasum":"6444e7ca4dbd9899e7eeb5ec3922827ebdc22b3b","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.35","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"6444e7ca4dbd9899e7eeb5ec3922827ebdc22b3b","size":5216,"noattachment":false,"key":"/promptly/-/promptly-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-0.2.1.tgz"},"directories":{},"publish_time":1422526658906,"_cnpm_publish_time":1422526658906,"_hasShrinkwrap":false},"0.2.0":{"name":"promptly","version":"0.2.0","description":"Simple command line prompting utility","main":"index.js","dependencies":{"read":"~1.0.4"},"devDependencies":{"mocha":"~1.8.1","async":"~0.1.22","expect.js":"~0.2.0"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promptly"},"bugs":{"url":"http://github.com/IndigoUnited/node-promptly/issues"},"keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","readmeFilename":"README.md","_id":"promptly@0.2.0","dist":{"shasum":"73ef200fa8329d5d3a8df41798950b8646ca46d9","size":5340,"noattachment":false,"key":"/promptly/-/promptly-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-0.2.0.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"directories":{},"publish_time":1370377724607,"_cnpm_publish_time":1370377724607,"_hasShrinkwrap":false},"0.1.0":{"name":"promptly","version":"0.1.0","description":"Simple command line prompting utility","main":"index.js","dependencies":{"read":"~1.0.4"},"devDependencies":{"mocha":"~1.8.1","async":"~0.1.22","expect.js":"~0.2.0"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promptly"},"bugs":{"url":"http://github.com/IndigoUnited/node-promptly/issues"},"keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","readmeFilename":"README.md","_id":"promptly@0.1.0","dist":{"shasum":"a444bcd4e6d8464590981cc03045f9040dc4e58b","size":5218,"noattachment":false,"key":"/promptly/-/promptly-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"indigounited","email":"hello@indigounited.com"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"directories":{},"publish_time":1359413622399,"_cnpm_publish_time":1359413622399,"_hasShrinkwrap":false},"0.0.1":{"name":"promptly","version":"0.0.1","description":"Simple command line prompting utility","main":"index.js","devDependencies":{"mocha":"~1.8.1","async":"~0.1.22","expect.js":"~0.2.0"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promptly"},"bugs":{"url":"http://github.com/IndigoUnited/node-promptly/issues"},"keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","dependencies":{"read":"~1.0.4"},"readmeFilename":"README.md","_id":"promptly@0.0.1","dist":{"shasum":"a400d343f026efa17a75266572acbf0c5638e4b5","size":5012,"noattachment":false,"key":"/promptly/-/promptly-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-0.0.1.tgz"},"_npmVersion":"1.1.69","_npmUser":{"name":"indigounited","email":"hello@indigounited.com"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"directories":{},"publish_time":1359304940951,"_cnpm_publish_time":1359304940951,"_hasShrinkwrap":false},"0.0.0":{"name":"promptly","version":"0.0.0","description":"Simple command line prompting utility","main":"index.js","devDependencies":{"mocha":"~1.8.1","async":"~0.1.22","expect.js":"~0.2.0"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promptly"},"keywords":["prompt","choose","choice","cli","command","line"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","readmeFilename":"README.md","_id":"promptly@0.0.0","dist":{"shasum":"a039ebe1bf28de54d8455e30c954e36c5bea2699","size":4679,"noattachment":false,"key":"/promptly/-/promptly-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/promptly/download/promptly-0.0.0.tgz"},"_npmVersion":"1.1.69","_npmUser":{"name":"indigounited","email":"hello@indigounited.com"},"maintainers":[{"name":"indigounited","email":"hello@indigounited.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"directories":{},"publish_time":1359226187876,"_cnpm_publish_time":1359226187876,"_hasShrinkwrap":false}},"readme":"# promptly\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][codecov-image]][codecov-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url]\n\n[npm-url]:https://npmjs.org/package/promptly\n[downloads-image]:https://img.shields.io/npm/dm/promptly.svg\n[npm-image]:https://img.shields.io/npm/v/promptly.svg\n[travis-url]:https://travis-ci.org/moxystudio/node-promptly\n[travis-image]:https://img.shields.io/travis/moxystudio/node-promptly/master.svg\n[codecov-url]:https://codecov.io/gh/moxystudio/node-promptly\n[codecov-image]:https://img.shields.io/codecov/c/github/moxystudio/node-promptly/master.svg\n[david-dm-url]:https://david-dm.org/moxystudio/node-promptly\n[david-dm-image]:https://img.shields.io/david/moxystudio/node-promptly.svg\n[david-dm-dev-url]:https://david-dm.org/moxystudio/node-promptly?type=dev\n[david-dm-dev-image]:https://img.shields.io/david/dev/moxystudio/node-promptly.svg\n\n> Simple command line prompting utility.\n\n\n## Installation\n\n`$ npm install promptly`\n\n\n## API\n\n### .prompt(message, [options])\n\nPrompts for a value, printing the `message` and waiting for the input.   \nReturns a promise that resolves with the input.\n\nAvailable options:\n\n| Name   | Description   | Type     | Default |\n| ------ | ------------- | -------- | ------- |\n| default | The default value to use if the user provided an empty input | string | undefined |\n| trim | Trims the user input | boolean | true |\n| validator | A validator or an array of validators | function/array | undefined |\n| retry | Retry if any of the validators fail | boolean | true |\n| silent | Do not print what the user types | boolean | false |\n| replace | Replace each character with the specified string when `silent` is true | string | '' |\n| input | Input stream to read from | [Stream](https://nodejs.org/api/process.html#process_process_stdin) | process.stdin |\n| output | Output stream to write to | [Stream](https://nodejs.org/api/process.html#process_process_stdout) | process.stdout |\n| timeout | Timeout in ms | number | 0 |\n| useDefaultOnTimeout | Return default value if timed out | boolean | false |\n\nThe same **options** are available to **all functions** but with different default values.\n\n#### Examples\n\n- Ask for a name:\n\n    ```js\n    const promptly = require('promptly');\n\n    (async () => {\n        const name = await promptly.prompt('Name: ');\n        console.log(name);\n    })();\n    ```\n\n- Ask for a name with a constraint (non-empty value and length > 2):\n\n    ```js\n    const promptly = require('promptly');\n\n    const validator = function (value) {\n        if (value.length < 2) {\n            throw new Error('Min length of 2');\n        }\n\n        return value;\n    };\n\n    (async () => {\n        const name = await promptly.prompt('Name: ', { validator });\n        // Since retry is true by default, promptly will keep asking for a name until it is valid\n        // Between each prompt, the error message from the validator will be printed\n        console.log('Name is:', name);\n    })();\n    \n    ```\n\n- Same as above but do not retry automatically:\n\n    ```js\n    const promptly = require('promptly');\n\n    const validator = function (value) {\n        if (value.length < 2) {\n            throw new Error('Min length of 2');\n        }\n\n        return value;\n    };\n\n    (async () => {\n        try {\n            const name = await promptly.prompt('Name: ', { validator, retry: false });\n            console.log('Name is:', name);\n        } catch (err) {\n            console.error('Invalid name:')\n            console.error(`- ${err.message}`);\n        }\n    })();\n    ```\n\n- Ask for a name with timeout:\n\n    ```js\n    const promptly = require('promptly');\n\n    (async () => {\n        const name = await promptly.prompt('Name: ', { timeout: 3000 });\n        console.log(name);\n    })();\n    ```\n\n    It throws an `Error(\"timed out\")` if timeout is reached and no default value is provided\n\n#### Validators\n\nThe validators have two purposes: to check and transform input. They can be asynchronous or synchronous\n\n```js\nconst validator = (value) => {\n    // Validation example, throwing an error when invalid\n    if (value.length !== 2) {\n        throw new Error('Length must be 2');\n    }\n\n    // Parse the value, modifying it\n    return value.replace('aa', 'bb');\n}\n\nconst asyncValidator = async (value) => {\n    await myfunc();\n    return value;\n}\n```\n\n### .confirm(message, [options])\n\nAsk the user for confirmation, printing the `message` and waiting for the input.   \nReturns a promise that resolves with the answer.\n\nTruthy values are: `y`, `yes` and `1`. Falsy values are `n`, `no`, and `0`.   \nComparison is made in a case insensitive way.\n\nThe options are the same as [prompt](#promptmessage-options), except that `trim` defaults to `false`.\n\n#### Examples\n\n- Ask to confirm something important:\n\n    ```js\n    const promptly = require('promptly');\n\n    (async () => {\n        const answer = await promptly.confirm('Are you really sure? ');\n\n        console.log('Answer:', answer);\n    })();\n    ```\n\n### .choose(message, choices, [options])\n\nAsk the user to choose between multiple `choices` (array of choices), printing the `message` and waiting for the input.   \nReturns a promise that resolves with the choice.\n\nThe options are the same as [prompt](#promptmessage-options), except that `trim` defaults to `false`.\n\n#### Examples\n\n- Ask to choose between:\n\n    ```js\n    const promptly = require('promptly');\n\n    (async () => {\n        const choice = await promptly.choose('Do you want an apple or an orange? ', ['apple', 'orange']);\n\n        console.log('Choice:', choice);\n    })();\n    ```\n\n### .password(message, [options])\n\nPrompts for a password, printing the `message` and waiting for the input.   \nReturns a promise that resolves with the password.\n\nThe options are the same as [prompt](#promptmessage-options), except that `trim` and `silent` default to `false` and `default` is an empty string (to allow empty passwords).\n\n#### Examples\n\n- Ask for a password:\n\n    ```js\n    const promptly = require('promptly');\n\n    (async () => {\n        const password = await promptly.password('Type a password: ');\n\n        console.log('Password:', password);\n    })();\n    ```\n\n- Ask for a password but mask the input with `*`:\n\n    ```js\n    const promptly = require('promptly');\n\n    (async () => {\n        const password = await promptly.password('Type a password: ', { replace: '*' });\n\n        console.log('Password:', password);\n    })();\n    ```\n\n## Tests\n\n`$ npm test`   \n`$ npm test -- --watch` during development\n\n\n## License\n\nReleased under the [MIT License](https://www.opensource.org/licenses/mit-license.php).\n","_attachments":{},"homepage":"https://github.com/moxystudio/node-promptly","bugs":{"url":"https://github.com/moxystudio/node-promptly/issues"},"license":"MIT"}