{"_id":"@dawsonbotsford/shell-history","_rev":"2-02b490616f36f965c45ece4f9177e32d","name":"@dawsonbotsford/shell-history","description":"Get the command history of the user's shell","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"@dawsonbotsford/shell-history","version":"2.0.0","description":"Get the command history of the user's shell","license":"MIT","repository":{"type":"git","url":"git+https://github.com/dawsonbotsford/shell-history.git"},"author":{"name":"Dawson Botsford","email":"dawsonbotsford@gmail.com","url":"dawsonbotsford.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["shell","sh","zsh","bash","cli","command-line","terminal","term","console","history","histfile","command","cmd","parse","path"],"devDependencies":{"ava":"*","xo":"*"},"dependencies":{"if-file-read":"^1.0.0"},"xo":{"space":true},"gitHead":"4d94a28ce3d72eabb8376c12825ed61f1e02e32b","bugs":{"url":"https://github.com/dawsonbotsford/shell-history/issues"},"homepage":"https://github.com/dawsonbotsford/shell-history#readme","_id":"@dawsonbotsford/shell-history@2.0.0","_shasum":"b73f18c0d333001bfd7dcae9e970596dbf1d6b22","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.4.0","_npmUser":{"name":"dawsonbotsford","email":"dawsonbotsford@gmail.com"},"dist":{"shasum":"b73f18c0d333001bfd7dcae9e970596dbf1d6b22","tarball":"https://registry.npmjs.org/@dawsonbotsford/shell-history/-/shell-history-2.0.0.tgz","integrity":"sha512-9qBd3R6j4EQU05rE+ew05bJy1synvA685Yw0IJjSUtRfUbSZfHRiyu3jSGlTp/3HRGsP+NENehXtFWll+uKltQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEoswxmA4NP4mzyTnhWyp4MaOXaa3+1V144hsoapWkKvAiArDYsdpnzCQvF/yZ7+skQO/9QkbTRQ4S1Kfq+QZ3pmig=="}]},"maintainers":[{"name":"dawsonbotsford","email":"dawsonbotsford@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/shell-history-2.0.0.tgz_1485755155265_0.7915454602334648"}}},"readme":"# @dawsonbotsford/shell-history [![Build Status](https://travis-ci.org/dawsonbotsford/shell-history.svg?branch=master)](https://travis-ci.org/dawsonbotsford/shell-history)\n\n> Get the command history of the user's [shell](https://en.wikipedia.org/wiki/Shell_(computing))\n\nHard fork of [SindreSorhus' shell-history](https://github.com/sindresorhus/shell-history)\n\n## Install\n\n```\n$ npm install --save shell-history\n```\n\n## Usage\n\n```js\nconst shellHistory = require('shell-history');\n\nconsole.log(shellHistory());\n//=> ['ava', 'echo unicorn', 'node', 'npm test', ...]\n```\n\n\n## API\n\n### shellHistory()\n\nGet an array of commands.\n\nOn Windows it will always be an empty array as command history is not persisted there.\n\n### shellHistory.getContent()\n\nGet the Contents of the first occurring history file in the list of files\n\n### shellHistory.parse(string)\n\nParse a shell history string into an array of commands.\n\n\n## License\n\nMIT © [Dawson Botsford](https://dawsonbotsford.com)\n","maintainers":[{"name":"dawsonbotsford","email":"dawsonbotsford@gmail.com"}],"time":{"modified":"2022-06-12T16:57:31.213Z","created":"2017-01-30T05:45:55.491Z","2.0.0":"2017-01-30T05:45:55.491Z"},"homepage":"https://github.com/dawsonbotsford/shell-history#readme","keywords":["shell","sh","zsh","bash","cli","command-line","terminal","term","console","history","histfile","command","cmd","parse","path"],"repository":{"type":"git","url":"git+https://github.com/dawsonbotsford/shell-history.git"},"author":{"name":"Dawson Botsford","email":"dawsonbotsford@gmail.com","url":"dawsonbotsford.com"},"bugs":{"url":"https://github.com/dawsonbotsford/shell-history/issues"},"license":"MIT","readmeFilename":"readme.md"}