{"_id":"local-repl","_rev":"11-dfbc45d992a11720541cdde4bc0154c2","name":"local-repl","description":"Project-specific REPL configuration","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"local-repl","version":"1.0.0","description":"Project-specific REPL configuration","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sloria/local-repl.git"},"author":{"name":"Steven Loria","email":"sloria1@gmail.com","url":"stevenloria.com"},"bin":{"local-repl":"cli.js"},"engines":{"node":">=4"},"scripts":{"lint":"eslint .","repl":"node cli.js","test":"npm run lint && lab"},"files":["index.js"],"keywords":["cli","repl","console","configuration","shell"],"dependencies":{"chalk":"^1.1.3","lodash":"^4.17.4","read-pkg":"^2.0.0","req-cwd":"^2.0.0"},"devDependencies":{"code":"^4.0.0","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.1.3","eslint-plugin-import":"^2.2.0","lab":"^13.0.2"},"repl":[{"name":"l","module":"lodash"},{"name":"localRepl","module":"./"}],"gitHead":"a3cd932c2268983a89f9ba6359cc28076e8dd34c","bugs":{"url":"https://github.com/sloria/local-repl/issues"},"homepage":"https://github.com/sloria/local-repl#readme","_id":"local-repl@1.0.0","_shasum":"ee4a850e683db26b46ce7087452f0a31922f98c8","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"sloria","email":"sloria1@gmail.com"},"dist":{"shasum":"ee4a850e683db26b46ce7087452f0a31922f98c8","tarball":"https://registry.npmjs.org/local-repl/-/local-repl-1.0.0.tgz","integrity":"sha512-EPaRznPCToBia25CYGEja8eP9f21NTxQnE+9yHJXqh9AGtuqBG2WBTamT+KIHGm6VISyV3cNxwOdkDSClCbk8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICVM/ao+P091flv4bF5VPiFs+ToaoOKnJ7fJh0sRyo3eAiAjQaNn/PPB9hw3e8hA9stxH2ZlOHkaK7pMuxu6wx8shw=="}]},"maintainers":[{"name":"sloria","email":"sloria1@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/local-repl-1.0.0.tgz_1493493746039_0.06768181105144322"},"directories":{}},"1.1.0":{"name":"local-repl","version":"1.1.0","description":"Project-specific REPL configuration","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sloria/local-repl.git"},"author":{"name":"Steven Loria","email":"sloria1@gmail.com","url":"stevenloria.com"},"bin":{"local-repl":"cli.js"},"engines":{"node":">=4"},"scripts":{"lint":"eslint .","repl":"node cli.js","test":"npm run lint && lab"},"files":["index.js"],"keywords":["cli","repl","console","configuration","shell"],"dependencies":{"chalk":"^1.1.3","lodash":"^4.17.4","read-pkg":"^2.0.0","req-cwd":"^2.0.0"},"devDependencies":{"code":"^4.0.0","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.1.3","eslint-plugin-import":"^2.2.0","lab":"^13.0.2"},"repl":[{"name":"l","module":"lodash"},{"name":"localRepl","module":"./"}],"gitHead":"6f318b91fe4f1a706e6a8dae0cfa7d6ee8c9f632","bugs":{"url":"https://github.com/sloria/local-repl/issues"},"homepage":"https://github.com/sloria/local-repl#readme","_id":"local-repl@1.1.0","_shasum":"691c86e7837251e74c888db442300023eb8bbb8a","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"sloria","email":"sloria1@gmail.com"},"dist":{"shasum":"691c86e7837251e74c888db442300023eb8bbb8a","tarball":"https://registry.npmjs.org/local-repl/-/local-repl-1.1.0.tgz","integrity":"sha512-Px8HtoLWcHKqkGNCsb22hMdeAnNG+oe/EGEZk4VRtBF9Ak+KCvkRQdcEMvKa7chbWh548Eqsagow/M2YY4D39A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC25USu5CeFGDN2YODWC9n2uVhsfXrkWsqto/+zyQsxowIhAJCxz60ysm8LM1DrfBxMatLZHYn4uGea5+SyUJ+2cF//"}]},"maintainers":[{"name":"sloria","email":"sloria1@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/local-repl-1.1.0.tgz_1493499924945_0.8984676133841276"},"directories":{}},"1.2.0":{"name":"local-repl","version":"1.2.0","description":"Project-specific REPL configuration","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sloria/local-repl.git"},"author":{"name":"Steven Loria","email":"sloria1@gmail.com","url":"stevenloria.com"},"bin":{"local-repl":"cli.js"},"engines":{"node":">=4"},"scripts":{"lint":"eslint .","repl":"node cli.js","test":"npm run lint && lab"},"files":["index.js"],"keywords":["cli","repl","console","configuration","shell"],"dependencies":{"chalk":"^1.1.3","lodash":"^4.17.4","read-pkg":"^2.0.0","req-cwd":"^2.0.0"},"devDependencies":{"code":"^4.0.0","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.1.3","eslint-plugin-import":"^2.2.0","lab":"^13.0.2"},"repl":[{"name":"l","module":"lodash"},{"name":"localRepl","module":"./"}],"gitHead":"89a2daa94bc57d8600499cb574e8d527df99e8f4","bugs":{"url":"https://github.com/sloria/local-repl/issues"},"homepage":"https://github.com/sloria/local-repl#readme","_id":"local-repl@1.2.0","_shasum":"261fa577eaac8ca6ddb00aea99a607e7c93720dc","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"sloria","email":"sloria1@gmail.com"},"dist":{"shasum":"261fa577eaac8ca6ddb00aea99a607e7c93720dc","tarball":"https://registry.npmjs.org/local-repl/-/local-repl-1.2.0.tgz","integrity":"sha512-4jbE5Zp76wq4/9U2tPczh4VJHJm7KCH6/x9cWU8/Yv263L1J+A5Byuu7cuHt4xHF3WKDWjt2DCv/+Pk5Zp1S4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEeMmmISrACdzTdsytI8EGOtTCIbgrdvCwrElZWnYUUjAiEAxIr9Jv2RAQm0CVKglenEj76CWFhqHZyylKS+zwEp2KQ="}]},"maintainers":[{"name":"sloria","email":"sloria1@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/local-repl-1.2.0.tgz_1493575919241_0.6358046161476523"},"directories":{}},"2.0.0":{"name":"local-repl","version":"2.0.0","description":"Project-specific REPL configuration","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sloria/local-repl.git"},"author":{"name":"Steven Loria","email":"sloria1@gmail.com","url":"stevenloria.com"},"bin":{"local-repl":"cli.js"},"engines":{"node":">=4"},"scripts":{"lint":"eslint .","repl":"node cli.js","test":"npm run lint && lab"},"files":["index.js"],"keywords":["cli","repl","console","configuration","shell"],"dependencies":{"chalk":"^1.1.3","is-promise":"^2.1.0","lodash":"^4.17.4","read-pkg":"^2.0.0","req-cwd":"^2.0.0"},"devDependencies":{"code":"^4.0.0","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.1.3","eslint-plugin-import":"^2.2.0","lab":"^13.0.2"},"repl":[{"name":"l","module":"lodash"},{"name":"localRepl","module":"./"}],"gitHead":"7d66c4db47aacbe7bb7c25157f81e2fa445e447b","bugs":{"url":"https://github.com/sloria/local-repl/issues"},"homepage":"https://github.com/sloria/local-repl#readme","_id":"local-repl@2.0.0","_shasum":"2b523f3b41938fef3bd474cbdd57f0b137e8fd9e","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"sloria","email":"sloria1@gmail.com"},"dist":{"shasum":"2b523f3b41938fef3bd474cbdd57f0b137e8fd9e","tarball":"https://registry.npmjs.org/local-repl/-/local-repl-2.0.0.tgz","integrity":"sha512-/Dj/povijSIIZfTfMzwqlRs9eOXcNvcHDGdM6xRwZl74SVeJKLzmZhehKXyQ5aus4YTRMYeLFdWWaGXVSVoPFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChZOhA5fLNywh69wTklE3lFOsiHdpK4JTywSZ53/7YagIgaIqUbHqfI0kpWBMAGkhQZNSnnQB19towHCyAih7w6G0="}]},"maintainers":[{"name":"sloria","email":"sloria1@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/local-repl-2.0.0.tgz_1493586995237_0.6768707588780671"},"directories":{}},"2.0.1":{"name":"local-repl","version":"2.0.1","description":"Project-specific REPL configuration","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sloria/local-repl.git"},"author":{"name":"Steven Loria","email":"sloria1@gmail.com","url":"stevenloria.com"},"bin":{"local-repl":"cli.js"},"engines":{"node":">=4"},"scripts":{"lint":"eslint .","repl":"node cli.js","test":"npm run lint && lab"},"files":["index.js"],"keywords":["cli","repl","console","configuration","shell"],"dependencies":{"chalk":"^1.1.3","is-promise":"^2.1.0","lodash":"^4.17.4","read-pkg":"^2.0.0","req-cwd":"^2.0.0"},"devDependencies":{"code":"^4.0.0","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.1.3","eslint-plugin-import":"^2.2.0","lab":"^13.0.2"},"repl":[{"name":"l","module":"lodash"},{"name":"localRepl","module":"./"}],"gitHead":"5c9ed9878248c2dbe4591283dccab3f7b2d489d5","bugs":{"url":"https://github.com/sloria/local-repl/issues"},"homepage":"https://github.com/sloria/local-repl#readme","_id":"local-repl@2.0.1","_shasum":"e53bab87846f94c368e9a909344eb12e07331c31","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"sloria","email":"sloria1@gmail.com"},"dist":{"shasum":"e53bab87846f94c368e9a909344eb12e07331c31","tarball":"https://registry.npmjs.org/local-repl/-/local-repl-2.0.1.tgz","integrity":"sha512-ZxiNgWWKlmD/hniQPziX6L7bnpCpgnhWCXt2zjD87l7aUGD6/ERCUa/ifqzfUztq+8rEL/tyNlQ34ctHJltzOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEQwh9VeBOAfijVhHIHHHuGlJNyX9+KbiFnAThtnjb02AiAbqfMHm+Qd1+AWm1i1GizvDpao9NICFC1+cJ247e+X3g=="}]},"maintainers":[{"name":"sloria","email":"sloria1@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/local-repl-2.0.1.tgz_1493602394880_0.8384653273969889"},"directories":{}},"3.0.0":{"name":"local-repl","version":"3.0.0","description":"Project-specific REPL configuration","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sloria/local-repl.git"},"author":{"name":"Steven Loria","email":"sloria1@gmail.com","url":"stevenloria.com"},"bin":{"local-repl":"cli.js"},"engines":{"node":">=4"},"scripts":{"lint":"eslint .","repl":"node cli.js","test":"npm run lint && lab"},"files":["index.js"],"keywords":["cli","repl","console","configuration","shell"],"dependencies":{"chalk":"^2.0.0","lodash":"^4.17.4","p-props":"^1.0.0","read-pkg":"^2.0.0","req-cwd":"^2.0.0"},"devDependencies":{"code":"^4.0.0","eslint":"^4.5.0","eslint-config-airbnb-base":"^12.0.0","eslint-plugin-import":"^2.7.0","lab":"^14.0.1"},"repl":[{"name":"l","module":"lodash"},{"name":"localRepl","module":"./"}],"gitHead":"7c26d9cea9cdb7b7f9814c613e60b80e28c43c15","bugs":{"url":"https://github.com/sloria/local-repl/issues"},"homepage":"https://github.com/sloria/local-repl#readme","_id":"local-repl@3.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"sloria","email":"sloria1@gmail.com"},"dist":{"integrity":"sha512-J7GegectvNrTeVgap+SexIOMLddj87+ar2DgZWEFOMdRrgVPtRs/Gv3CV5zTNT7c0NBD2g2/C/LPMMEG9BQgBA==","shasum":"24447a07bd31292a123054d918391bdcfa151c9d","tarball":"https://registry.npmjs.org/local-repl/-/local-repl-3.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCugxGOJz9lk2dW/aqUvfr+aj63AD2j0y55t4d6/xFshAIhAJwCus4ftX0+YOsR5LTsUckCeX9n2chR0WDQphMbFUN4"}]},"maintainers":[{"name":"sloria","email":"sloria1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-repl-3.0.0.tgz_1507477324986_0.4920078148134053"},"directories":{}},"3.0.1":{"name":"local-repl","version":"3.0.1","description":"Project-specific REPL configuration","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sloria/local-repl.git"},"author":{"name":"Steven Loria","email":"sloria1@gmail.com","url":"stevenloria.com"},"bin":{"local-repl":"cli.js"},"engines":{"node":">=4"},"scripts":{"lint":"eslint .","repl":"node cli.js","test":"npm run lint && lab"},"files":["index.js","cli.js"],"keywords":["cli","repl","console","configuration","shell"],"dependencies":{"chalk":"^2.0.0","lodash":"^4.17.4","p-props":"^1.0.0","read-pkg":"^3.0.0","req-cwd":"^2.0.0"},"devDependencies":{"code":"^4.0.0","eslint":"^4.5.0","eslint-config-airbnb-base":"^12.0.0","eslint-plugin-import":"^2.7.0","lab":"^14.0.1"},"repl":[{"name":"l","module":"lodash"},{"name":"localRepl","module":"./"}],"gitHead":"304dc49eb014358aa9ebf270a841eed7a5059182","bugs":{"url":"https://github.com/sloria/local-repl/issues"},"homepage":"https://github.com/sloria/local-repl#readme","_id":"local-repl@3.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"sloria","email":"sloria1@gmail.com"},"dist":{"integrity":"sha512-EMMXOwbaqqdf42XxYknVSNB1Cqui26gihWj6SdXy3lCHZC/8vXHQAbpKzvwdGh9YUpZ1db5CgeiqzrlP5vu+Cw==","shasum":"73f6bf86dafd19667923a8c472b7c15a25a55c9f","tarball":"https://registry.npmjs.org/local-repl/-/local-repl-3.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEacuG/x8MxFeL6bmCgjmKiK9ucT+Ldnsx9jh2cKDyrGAiAh1fZIx2/IUSoZvW3G7KZcKL7lbkWQyzPcnJ8Gz9yUFg=="}]},"maintainers":[{"name":"sloria","email":"sloria1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-repl-3.0.1.tgz_1512427895853_0.926214590203017"},"directories":{}},"3.1.0":{"name":"local-repl","version":"3.1.0","description":"Project-specific REPL configuration","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sloria/local-repl.git"},"author":{"name":"Steven Loria","email":"sloria1@gmail.com","url":"stevenloria.com"},"bin":{"local-repl":"cli.js"},"engines":{"node":">=4"},"scripts":{"lint":"xo","repl":"node cli.js","test":"npm run lint && lab","release":"np --no-publish"},"files":["index.js","cli.js"],"keywords":["cli","repl","console","configuration","shell"],"dependencies":{"await-outside":"^2.1.2","chalk":"^2.0.0","lodash":"^4.17.4","p-props":"^1.0.0","read-pkg":"^3.0.0","req-cwd":"^2.0.0"},"devDependencies":{"code":"^4.0.0","lab":"^14.0.1","np":"^2.18.1","xo":"^0.18.2"},"repl":{"context":[{"name":"l","module":"lodash"},{"name":"localRepl","module":"./"}],"enableAwait":true},"xo":{"space":true,"rules":{"no-multi-assign":0,"eqeqeq":0,"capitalized-comments":0,"operator-linebreak":0,"comma-dangle":["error",{"arrays":"always-multiline","objects":"always-multiline","imports":"always-multiline","exports":"always-multiline","functions":"never"}]}},"gitHead":"8f162f9a0bcdb30b5f0015584b81e8129294f57c","bugs":{"url":"https://github.com/sloria/local-repl/issues"},"homepage":"https://github.com/sloria/local-repl#readme","_id":"local-repl@3.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"sloria","email":"sloria1@gmail.com"},"dist":{"integrity":"sha512-zld4Z9qPga+rL+U8KvoNuvZiFN/h1glJNgmsfPNSo2bMgzby9FH0SAPll2AP1LfYChlB/a4IT7YrDN5hw3aUXg==","shasum":"90a0ab342ba5c40bd95f40ce9d04563af5c4eace","tarball":"https://registry.npmjs.org/local-repl/-/local-repl-3.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDN6weEJzGHB8v7UCza4TgAOOK/sZ4x0LkfO59koNXOygIhAOV/TjGFcd4T2L3RIEnEU8tjo9/KnoeX+WHWdRYsA7vP"}]},"maintainers":[{"name":"sloria","email":"sloria1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-repl-3.1.0.tgz_1512452286454_0.0629960207734257"},"directories":{}},"4.0.0":{"name":"local-repl","version":"4.0.0","description":"Project-specific REPL configuration","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sloria/local-repl.git"},"author":{"name":"Steven Loria","email":"sloria1@gmail.com","url":"stevenloria.com"},"bin":{"local-repl":"cli.js"},"engines":{"node":">=4"},"scripts":{"lint":"xo","repl":"node cli.js","test":"npm run lint && ava test/tests.js","release":"np --no-publish"},"files":["index.js","cli.js"],"keywords":["cli","repl","console","configuration","shell"],"dependencies":{"await-outside":"^2.1.2","chalk":"^2.0.0","lodash":"^4.17.4","p-props":"^1.0.0","read-pkg":"^3.0.0","req-cwd":"^2.0.0"},"devDependencies":{"ava":"^0.25.0","np":"^2.18.1","xo":"^0.20.3"},"repl":{"context":[{"name":"l","module":"lodash"},{"name":"localRepl","module":"./"}],"enableAwait":true},"xo":{"space":true,"rules":{"no-multi-assign":0,"eqeqeq":0,"capitalized-comments":0,"operator-linebreak":0,"comma-dangle":["error",{"arrays":"always-multiline","objects":"always-multiline","imports":"always-multiline","exports":"always-multiline","functions":"never"}]}},"gitHead":"459edb7ec2e1fadfc3d5c3426ed6d24221a23c46","bugs":{"url":"https://github.com/sloria/local-repl/issues"},"homepage":"https://github.com/sloria/local-repl#readme","_id":"local-repl@4.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"sloria","email":"sloria1@gmail.com"},"dist":{"integrity":"sha512-HUM5E6nlyt6k+Iew+paPD1xZL4KnWNO7FvRJbldfKXsk3vHl1eIUZNl980hDgzp6nxZUO1GVCr5Bf1Cdi+WEIg==","shasum":"c54c0cd48b7103b14e047e41ea2c3db939cc42b9","tarball":"https://registry.npmjs.org/local-repl/-/local-repl-4.0.0.tgz","fileCount":6,"unpackedSize":14138,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa70HbCRA9TVsSAnZWagAAht0P/ilE42QZZq6W3I4+ajJu\nRQsZtYwgWNXnrS+OXb9Tdsh6m2ob9DQtg04RGm6jNKEgqMPBrGv+Njesj9Zo\n2BZ3xgAkfbCAGdz2x4EjkGt6p11jAYCCdi3bpAugI7+Ocr5jIb5C4dw/UNDL\nZYBjhm6poOvczalcxz/E9toSAXSRzr33faEQIfGpDqKMMn+aQOQhGCRg0tFW\nUv7kC1kDpXXfJ9cH9EAz3Tq1Nb9Sk9k3rQSVvYjJjrNqWdy2oud37tIJpwqu\nXZzDKCjGrM/VqNP2X0mnQ+rJdjmBCtbkxBZVyv75sLLk9C/FNGvv5ix3Sy05\nt6INWj9lJprjGXq5k2rnmgKyv3eHiy74XtascsQI2NJ1E5B4oZsGW6B91NMY\nJGZYAV7NlZ+u805HeRpcbtKy7cncVWR8Wlqn+F8UpkpvQd8+lO+LshY8NtfR\nAFF7u2nyLM0mHnsLEYg2ln3cI3aWiQAJhX/0gesEvQ+iWEpfPTzdU/f131Kp\nbuuOnwpstPxvRYwEgdxusN7kunllzzWh94763/+5h6/7S1w36D00+a/MEDed\neFqEF1GFUSsfDgNbkf4ZdFZlRm0alMl3KWE0bg/3LUlg2MY9+Sah3g+Zrzl6\nlh4oR2szD+TZItRCGlkw1KKeGpebW1zaMdgaxx227SimUqFrVgNsZV+3fNp0\nzkFY\r\n=a8aq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICj42OB+fbSBU43NlMqlIAm9lb9X5ndmKJnusDPT5EFrAiEAgthHIr1UABlzoZQuNQFOTktV4eWCoUrtxzNVZ3ElAPA="}]},"maintainers":[{"name":"sloria","email":"sloria1@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-repl_4.0.0_1525629401382_0.589005030811828"},"_hasShrinkwrap":false}},"readme":"# 🐚 local-repl\n\n[![Current Version](https://img.shields.io/npm/v/local-repl.svg)](https://www.npmjs.org/package/local-repl)\n[![Build Status](https://travis-ci.org/sloria/local-repl.svg?branch=master)](https://travis-ci.org/sloria/local-repl)\n[![Greenkeeper badge](https://badges.greenkeeper.io/sloria/local-repl.svg)](https://greenkeeper.io/)\n\nProject-specific REPLs for Node.js. `local-repl` allows you to automatically import modules and values into your REPL sessions with simple configuration in your project's `package.json` and/or `.replrc.js`.\n\n## Features!\n\n- Automatically import modules into your REPL sessions\n- Use `await` in the REPL without having to wrap your code in async functions\n- Configure the banner and prompt\n\n\n## Add local-repl to your project\n\n```\n$ npm install local-repl --save-dev\n# OR\n$ yarn add local-repl --dev\n```\n\nAdd the following to `package.json`. Note: lodash is used as an example\nhere; it is not required to use local-repl.\n\n```json\n{\n  \"scripts\": {\n    \"repl\": \"local-repl\"\n  },\n  \"devDependencies\": {\n    \"local-repl\": \"^3.0.0\"\n  },\n  \"dependencies\": {\n    \"lodash\": \"^4.17.4\",\n  },\n  \"repl\": [\n    \"lodash\",\n  ]\n}\n```\n\n## Run it\n\n```\n$ npm run repl\n```\n\nThis will start a REPL session with `lodash` already imported.\n\n![](media/basic.gif)\n\n## Specifying aliases\n\nYou can pass an array of objects containing the keys `\"name\"` (required), `\"module\"` (for imports), or `\"value\"` (for values).\n\n```json\n{\n  \"repl\": [\n    {\"name\": \"l\", \"module\": \"lodash\"},\n    {\"name\": \"meaningOfLife\", \"value\": 42}\n  ]\n}\n```\n\n![](media/aliases.gif)\n\n## Importing local modules\n\nLocal modules can be imported, too.\n\n```json\n{\n  \"repl\": [\n    {\"name\": \"project\", \"module\": \"./\"},\n    {\"name\": \"utils\", \"module\": \"./lib/utils\"}\n  ]\n}\n```\n\n## Using `.replrc.js`\n\nInstead of defining configuration in \"package.json\", you may define your configuration in a `.replrc.js` file. This is useful if you want to dynamically compute modules and values for your REPLs.\n\n```js\n// .replrc.js\nconst User = require('./myapp/models/User');\n\nmodule.exports = {\n  context: [\n    'lodash',\n    'myapp/utils',\n    {name: 'me', value: User.getByEmail('sloria')},\n  ]\n}\n```\n\n**Note**: Configuration defined in `.replrc.js` takes precedence over configuration defined in `package.json`.\n\n\n## Defining context as an object\n\nContext can be defined as an object rather than an array.\n\n```javascript\n// .replrc.js\nconst User = require('./myapp/models/User');\n\nmodule.exports ={\n  context: {\n    l: require('lodash'),\n    utils: require('myapp/utils'),\n    me: User.getByEmail('sloria'),\n  }\n}\n```\n\n## Promises as context values\n\nContext values that are promises will be resolved before the REPL starts.\n\n```javascript\n// .replrc.js\nconst promise = new Promise((resolve) => {\n  setTimeout(() => {\n    resolve(42);\n  }, 500);\n});\n\nmodule.exports = {\n  // REPL will have meaningOfLife with value 42 in context\n  context: {\n    meaningOfLife: promise,\n  }\n};\n```\n\n## await support\n\nYou can use `await` in your REPL sessions without having to\ncreate `async` functions.\n\n![](media/await.gif)\n\nJust add the following to your package.json:\n\n```json\n{\n  \"repl\": {\n    \"enableAwait\": true\n  }\n}\n```\n\nOr in `.replrc.js`\n\n```js\n// .replrc.js\nmodule.exports = {\n  enableAwait: true\n}\n\n```\n\n## More configuration\n\n### Configuring the prompt\n\nIn package.json:\n\n```json\n{\n  \"repl\": {\n    \"prompt\": \"myproject $\"\n  }\n}\n```\n\nIn `.replrc.js`:\n\n```javascript\n// .replrc.js\nmodule.exports = {\n  prompt: 'myproject $'\n}\n```\n\nYou can also define `prompt` as a function in `.replrc.js`. The function will receive the REPL context and the parsed `package.json` object.\n\n```javascript\n// .replrc.js\nmodule.exports = {\n  prompt: (context, pkg) => {\n    return `${pkg.name} ${pkg.version} $`\n  }\n}\n```\n\n### Configuring the banner\n\nIn package.json:\n\n```json\n{\n  \"repl\": {\n    \"banner\": \"Welcome to the myapp REPL. Happy hacking!\"\n  }\n}\n```\n\nYou can also define `banner` as a function in `.replrc.js`. The function will receive the REPL context and the parsed `package.json` object.\n\n```javascript\n// .replrc.js\nconst _ = require('lodash');\nconst chalk = require('chalk');\n\nmodule.exports = {\n  context: [\n    {name: 'l', value: _},\n    {name: 'meaningOfLife', value: 42},\n  ],\n  banner: (context, pkg) => {\n    console.log(chalk.bold(`Welcome to the REPL for myapp ${pkg.version}.`));\n    console.log(chalk.green('Happy hacking!'));\n    console.log(chalk.cyan('Context:'), _.keys(context).sort().join(', '));\n  }\n}\n```\n\n![](media/banner.png)\n\n## Programmatic usage\n\n`local-repl` can be used programatically. The `.start(options)` function takes the same options as Node's built-in [`repl.start(options)`](https://nodejs.org/api/repl.html#repl_repl_start_options) and returns a `Promise` that resolves to a `REPLServer` instance.\n\n```javascript\nconst repl = require('local-repl');\n\nrepl.start({ prompt: '< -_- > ' });\n```\n\n## Inspiration\n\n`local-repl` is inspired a number of other great projects:\n\n- [konch](https://github.com/sloria/konch) - REPL configuration for Python\n- [n_](https://github.com/borisdiakur/n_) - Node.js REPL with lodash\n\n## License\n\nMIT licensed. See [LICENSE](https://github.com/sloria/local-repl/blob/master/LICENSE) for more details.\n","maintainers":[{"name":"sloria","email":"sloria1@gmail.com"}],"time":{"modified":"2022-06-19T13:18:25.424Z","created":"2017-04-29T19:22:28.097Z","1.0.0":"2017-04-29T19:22:28.097Z","1.1.0":"2017-04-29T21:05:25.538Z","1.2.0":"2017-04-30T18:11:59.961Z","2.0.0":"2017-04-30T21:16:35.840Z","2.0.1":"2017-05-01T01:33:16.692Z","3.0.0":"2017-10-08T15:42:05.888Z","3.0.1":"2017-12-04T22:51:36.812Z","3.1.0":"2017-12-05T05:38:07.410Z","4.0.0":"2018-05-06T17:56:41.565Z"},"homepage":"https://github.com/sloria/local-repl#readme","keywords":["cli","repl","console","configuration","shell"],"repository":{"type":"git","url":"git+https://github.com/sloria/local-repl.git"},"author":{"name":"Steven Loria","email":"sloria1@gmail.com","url":"stevenloria.com"},"bugs":{"url":"https://github.com/sloria/local-repl/issues"},"license":"MIT","readmeFilename":"README.md"}