{"_id":"@andfaulkner/repl.history","name":"@andfaulkner/repl.history","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"author":{"name":"Elijah Insua","email":"tmpvar@gmail.com","url":"http://tmpvar.com"},"contributors":[{"name":"Scott Nelson","url":"https://github.com/scttnlsn"},{"name":"Andrew Faulkner","url":"https://github.com/andfaulkner"}],"name":"@andfaulkner/repl.history","description":"Add history to node's repl (working with node 16+)","license":"MIT","version":"0.2.0","repository":{"type":"git","url":"git://github.com/andfaulkner/repl.history.git"},"dependencies":{},"devDependencies":{},"bin":{"repl.history":"bin/repl.history"},"gitHead":"68b98d2578234166600b67bc49a4f8b74e793ad4","bugs":{"url":"https://github.com/andfaulkner/repl.history/issues"},"homepage":"https://github.com/andfaulkner/repl.history#readme","_id":"@andfaulkner/repl.history@0.2.0","_nodeVersion":"16.4.2","_npmVersion":"7.18.1","dist":{"integrity":"sha512-Q1guQTHpFJF3FU9wIaIbliOVZb4jfU6qXRpsrRN8RmUd+MtyuOJmDM3ZpWB4ZL3ZxD9CRhXeKqvCv3XtbdV9bw==","shasum":"725286af475bae9b175188a73a2edd9beac70d98","tarball":"https://registry.npmjs.org/@andfaulkner/repl.history/-/repl.history-0.2.0.tgz","fileCount":5,"unpackedSize":3845,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHQkeG6IqpHpkBgvtEnuu5YTYHyooeEO/OlUG+d8ISbSAiEAtxK9LKOU32fCK8RY0LtFNjq8se3aX2i0VF6RkZtJBR0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYXFNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmruWw/+MsKpFgMAJBcHRGS3EuXAuCj1JNf9TPNnh4BHrI1cgx0KsdXK\r\nPplN8YETN95eu80yXwHNfuA9rQQNnVI59iYqr/RSCuuwW46v7dEGm15lf7Q1\r\nYlP6/m9930w1vdznjb0pHWQ5ZLT3eOPYPQjYYv9/aOnYIhLKXeS+Ogtn+w81\r\nei/FdOT3lxraazhkrg+VBap/+ab3WqdD0xrT/T6jCNzDtM5iar/s91okbb+i\r\nbgiHn0VEaH3onG/b5uzJTvx9hljxf76IiIgpriZn0LAYLo4McC/KFQBeYjK2\r\nBgb81PsJWBI4N17Azkw0KLQCtJJD/ROrlomSyEeXt0AD6daJPpArOiHSndsZ\r\nt/cXI6GdkYZXiV9hQjvnXK4kb8+fqP35RYoiFyUFz09e1DnZFlhutR2Dn8l7\r\nIybjpNexg9AOtz0HxpwFmuYxOWtfs1EdJ+I1QVj4GAW466/oQfNksXVPyKVa\r\nIUZryu6ddBLZ6vrkIAMkteq8pa1anA6Naoof7ZFEwVpIJ5glkK1FU1RHYx+t\r\nwX6BMbEDHzrQg8zIWtOxWebiYNStWg2Eh8Z6UCR4QwC4uMROdbw5hyIrcsdl\r\ny8OomE7wcKMZr3BSO7/lztR4aH9hqtcuKjwvetjuP+MOvoPJ00jN4w+aDVDq\r\n2CN42VeGafQIh5mvYkK2yKHBPkomg7dTnXA=\r\n=t66E\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"andfaulkner","email":"andfaulkner@gmail.com"},"directories":{},"maintainers":[{"name":"andfaulkner","email":"andfaulkner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/repl.history_0.2.0_1650553165272_0.4629963806828532"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-21T14:59:25.271Z","0.2.0":"2022-04-21T14:59:25.425Z","modified":"2022-04-21T14:59:25.658Z"},"maintainers":[{"name":"andfaulkner","email":"andfaulkner@gmail.com"}],"description":"Add history to node's repl (working with node 16+)","homepage":"https://github.com/andfaulkner/repl.history#readme","repository":{"type":"git","url":"git://github.com/andfaulkner/repl.history.git"},"contributors":[{"name":"Scott Nelson","url":"https://github.com/scttnlsn"},{"name":"Andrew Faulkner","url":"https://github.com/andfaulkner"}],"author":{"name":"Elijah Insua","email":"tmpvar@gmail.com","url":"http://tmpvar.com"},"bugs":{"url":"https://github.com/andfaulkner/repl.history/issues"},"license":"MIT","readme":"# repl.history\n\nPersist a node repl's history to a file (now working with node v16+).\n\n## from node\n\ninstall: `npm install repl.history`\n\n```javascript\nconst os = require('os');\nconst path = require('path');\n\nconst historyFile = path.join(os.homedir(), '.node_history');\n\nconst repl = require('repl').start('> ');\nrequire('repl.history')(repl, historyFile);\n```\n\nthis will drop a `.node_history` file in your home directory.\n\n## from the command line\n\ninstall: `npm install -g @andfaulkner/repl.history`\n\nrun `repl.history` on the command line\n\nA file `~/.node_history` will be created.\n\nI like to alias it to `nr` for node repl. To do this, add the following to your `~/.bashrc` file:\n\n```\nalias nr=\"repl.history\"\n```\n","readmeFilename":"README.md"}