{"_id":"promirepl","_rev":"7-ece1c26825e338311ed9944e007b5243","name":"promirepl","description":"Promise infused REPL","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.1":{"name":"promirepl","version":"1.0.1","description":"Promise infused REPL","repository":{"type":"git","url":"https://github.com/building5/node-promirepl.git"},"bugs":{"url":"https://github.com/building5/node-promirepl/issues"},"keywords":["repl","promises"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"prominode":"./bin/prominode.js"},"author":{"name":"David M. Lee, II"},"license":"MIT","gitHead":"8d9e8e918cd2ee055ab20a354f2a36804a3ca52b","homepage":"https://github.com/building5/node-promirepl","_id":"promirepl@1.0.1","_shasum":"2951aaeba2bf3fe2274ff63a16d94c04ca60872e","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"leedm777","email":"leedm777@yahoo.com"},"maintainers":[{"name":"leedm777","email":"leedm777@yahoo.com"}],"dist":{"shasum":"2951aaeba2bf3fe2274ff63a16d94c04ca60872e","tarball":"https://registry.npmjs.org/promirepl/-/promirepl-1.0.1.tgz","integrity":"sha512-yY5eq/4e/3U1HsR5HIZTk3j8mr5NA4wZK53g2GhHut5a4S5PhYuSzkGZrUCg3Q+pDV9SZsWwCwmpBPRU+sRJaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCy8ex+WmppYv1Bol+VuLmrTc2Amq9n1G6F8Xu6Wy+dxwIhAOd4dG1kb8bUP44IVywJ0yar4s5Rr5wM33EhisP8yrfH"}]},"directories":{}},"2.0.0":{"name":"promirepl","version":"2.0.0","description":"Promise infused REPL","repository":{"type":"git","url":"git+https://github.com/building5/node-promirepl.git"},"bugs":{"url":"https://github.com/building5/node-promirepl/issues"},"keywords":["repl","promises"],"main":"index.js","scripts":{"test":"eslint ."},"bin":{"prominode":"./bin/prominode.js"},"engines":{"node":"^8"},"author":{"name":"David M. Lee, II"},"license":"MIT","devDependencies":{"eslint":"^5.3.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.16.0","eslint-plugin-promise":"^4.0.1"},"gitHead":"e72b856fc3419c613a25dcd3c0cb48bc09fb0c9b","homepage":"https://github.com/building5/node-promirepl#readme","_id":"promirepl@2.0.0","_nodeVersion":"11.10.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-XejqwdCx0cfyX/7ZVsqPjSUoNc4zxsdqn6/dteHtYPxhrF9ol9rcOdNLGCa8Zlsnc6pwfEJ9UTxovOgSNuhJ3A==","shasum":"ddad1d4141c9dc5dfaf92aefa3c5d92d329763f7","tarball":"https://registry.npmjs.org/promirepl/-/promirepl-2.0.0.tgz","fileCount":9,"unpackedSize":7213,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcejbECRA9TVsSAnZWagAAkIUP+wT40pD2U1mQWDQkG7iZ\n1sLx1McOYOqJduIFCmjnaR+WyRYamWg6l5WNHV3XxHue+q3GwCxT5qHeSQZu\nF7dShHt7OciOJXjT8E+wYHPaXjyx++i7b8v/BYVKrYGZjJfeYwl0KAwGbV4X\ntjsvVWstN3JA+3vqYJYmWn7LG+e3kYtgE2A18BKx2yCnakCZhZFO67dVgqPo\nSFCQ0XxQpKkQfM1bvnliBnedh5P/XFaUUf5BKiG1hTVP+4WRv9LUiLQXwitt\nU87lkyDX5PYsHYD5xW++gB7cPJrROEHDxTVoMv+gluPgi/TcADTa/F/Bm6xE\nZ8bn4YpBtxafgwymAO/S6h3AhE22e6+er8EFUSbN3n2serdoSB5qlzONW5aF\nDWpRUIgQ7RtSajuHTCrS6QSYXtQdn2Xy3rtxKCMoMR/6n1S+ntF8Y88qMKs7\nRVrGUeukxNGFPFiwa5WihRvod/t4je1608jQmHUdT/jOJZ84VshdfuHUF2xK\nt2JfZmJD5sZReIjduQ8VeGZD2uBKL8815QLUI1+xL1R2IVx1HqB/kaDZbbTV\nQ0tB2pbQ4mqJLnPSdDFVHNaBnrSD35zvqQnONFLf64xxBYZJ8vWgTn+jC3XQ\nJb2HWb0evMP+C4oC0JBQdFpmSNru7wVxBN3C2O73772c5iXjlwAEKn42XNTA\nUwaU\r\n=gEBg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7/rAHpigmJLlZqfFK4Zavo1j81Tn0cQHlJzhYgnzTZwIhAJb5L+4HH1+nEA/lHLrGkxGaPoZThzgTTRkiE3r+uuo7"}]},"maintainers":[{"name":"leedm777","email":"leedm777@yahoo.com"}],"_npmUser":{"name":"leedm777","email":"leedm777@yahoo.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promirepl_2.0.0_1551513283949_0.47659204453539306"},"_hasShrinkwrap":false},"2.0.1":{"name":"promirepl","version":"2.0.1","description":"Promise infused REPL","repository":{"type":"git","url":"git+https://github.com/building5/node-promirepl.git"},"bugs":{"url":"https://github.com/building5/node-promirepl/issues"},"keywords":["repl","promises"],"main":"index.js","scripts":{"test":"eslint ."},"bin":{"prominode":"./bin/prominode.js"},"engines":{"node":"^8"},"author":{"name":"David M. Lee, II"},"license":"MIT","devDependencies":{"eslint":"^5.3.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.16.0","eslint-plugin-promise":"^4.0.1"},"gitHead":"d1c79869a6c83d6b7085bb6d0891b7c1b4b17895","homepage":"https://github.com/building5/node-promirepl#readme","_id":"promirepl@2.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.15.0","_npmUser":{"name":"leedm777","email":"leedm777@yahoo.com"},"dist":{"integrity":"sha512-CUYuyU858eJ4OuQLKhJTE1Mijb1zxuAOnmVSYysau1k58zxT9qf0bJb/3QYrYadzmyuLn4EB82Oki+uHmWqC0w==","shasum":"3f4c4a97fb3927ec4547bd5d0585076ae00646f2","tarball":"https://registry.npmjs.org/promirepl/-/promirepl-2.0.1.tgz","fileCount":9,"unpackedSize":7275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcejd5CRA9TVsSAnZWagAADK4QAIIdO036YR9sM+Aou4WY\nD0CZ2kzSu9nH1l8BTdkV6P280SwpBQzvjlStHvitOMlvRcitduuzxf2zLhHB\nDnozhMBl9YgkPBRxOE/5kG9QuG5d4lpyTUYN7d2qn4gjMWOCdgW8YVJ+wG2v\nX9i2fPeqcZLc8QJ8Zx3kiQv5B8WooaPw9LbWGZFj8ds8jXLvyzOKHgVXrwjR\nOz8IidfgYmoNBS6saZZBmliQb+NFQbNLxv9j877vsQVKymT7UyT9EvZwkOwW\nawZ1lRvEdWxRF8bhp2g2X9JJwMWBNvEGh9IaYy8Cf2qhV8DPlOwRH0gEmUxw\ndl2Nr220fHY4RwzKdl9g60q+XTSRsLl7Y5k0+fVKlPjjApYxm70UBkE1Y3nZ\n8hifU5n+VdL/D1N4kcmsihIW31Sutjfdse8u+1WCJCMWC6IDiPHK7somRDzS\nzlZmI+6gbr0KBeM4pjxaYo3osjjEWNqS2UtHanvjp1/8OAU819W3Pcbp7U6D\ns3fRQlKqqbh+xHZzmbecOjS8BYbpEBohH012YNfX7DGDK3DW+PBmQ9Ygz7Wi\npoOIxorqh01B4DsjLGMYA90hTCeEFVpN9ChU28syjKitw7Hhmi3oXRcKtnAK\ni3OroCjMjyBrWkaJS2dUPX/y0e5hBisDSUi8dwz+HhBysOUVWMm+9x+9S4r7\nCIfl\r\n=Q+BH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYzgD+mYh/qabrxWktJkxO6X5D3WEK5aaAYgvsnZSZYwIhAPPdKGMebFpVX2tNMWEZMqy60Nwvculu/X4t9vUS1f9K"}]},"maintainers":[{"name":"leedm777","email":"leedm777@yahoo.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promirepl_2.0.1_1551513464497_0.8764760463499226"},"_hasShrinkwrap":false}},"readme":"# promirepl\n\nA promise infused REPL.\n\nPromirepl provides a Node.js REPL which will automagically unwrap [promise][]\nvalues. It also is Node module, with a function that can add these magical\npromise inspecting capabilities to your own custom REPLs.\n\nThis allows you to use promise based APIs from the REPL just as easily as old\nfashioned synchronous APIs, without a lot of messing around with callbacks and\n`console.log` to get at asynchronous values from the REPL.\n\n## Installation\n\nPromirepl can be installed with `npm install -g promirepl`. This installs the\n`prominode` executable, which starts a Node.js REPL that has magical promise\nunwraping capabilities.\n\n## Usage\n\n    $ prominode\n\nWhenever a value evaluates to a promise (well, technically a [thenable][]),\npromirepl will wait for the promise to resolve.\n\n    > Promise.resolve('hello')\n    'hello'\n\n    > new Promise((resolve) => {\n    ... setTimeout(() => { resolve('some time later'); }, 3000);\n    ... })\n    'some time later'\n\nIf the promise is rejected, it will evaluate as a thrown error.\n\n    > Promise.reject(new Error('boom'))\n    Error: boom\n        at repl:1:16\n        at REPLServer.defaultEval (repl.js:135:27)\n\nIf you would like to stop waiting on a promise, hit escape.\n\n    > new Promise(function () {})\n    Hit escape to stop waiting on promise\n    break.\n\nIf you would like to disable promise unwrapping, enter the `.promise` command.\n\n    > .promise\n    Promise auto-eval disabled\n\n    > Promise.resolve('hello')\n    {}\n\n    > Promise.reject(new Error('boom'))\n    {}\n\n## Programmatic Usage\n\nIf you would like to use promirepl within your own custom REPL, use the\nexported `promirepl` function.\n\n    const customRepl = createCustomRepl();\n    const { promirepl } = require('promirepl');\n    promirepl(customRepl.start({}));\n\n [promise]: https://promisesaplus.com/\n [thenable]: https://promisesaplus.com/#point-7\n","maintainers":[{"name":"leedm777","email":"leedm777@yahoo.com"}],"time":{"modified":"2022-06-24T18:24:37.155Z","created":"2014-11-15T06:23:14.607Z","1.0.1":"2014-11-15T06:23:14.607Z","2.0.0":"2019-03-02T07:54:44.091Z","2.0.1":"2019-03-02T07:57:44.687Z"},"homepage":"https://github.com/building5/node-promirepl#readme","keywords":["repl","promises"],"repository":{"type":"git","url":"git+https://github.com/building5/node-promirepl.git"},"author":{"name":"David M. Lee, II"},"bugs":{"url":"https://github.com/building5/node-promirepl/issues"},"license":"MIT","readmeFilename":"README.md"}