{"_id":"@eliperelman/in-memory-db","_rev":"1-637a149b17a37e6b337f0e25e7170e76","name":"@eliperelman/in-memory-db","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@eliperelman/in-memory-db","version":"1.0.0","main":"build/index.js","author":{"name":"Eli Perelman","email":"eli@eliperelman.com"},"license":"MIT","bin":{"in-memory-db":"bin/in-memory-db.js"},"scripts":{"lint":"eslint --cache --format codeframe --ext ts,js src bin .eslintrc.js .neutrinorc.js webpack.config.js","build":"webpack --mode production","start":"yarn build && node bin/in-memory-db.js"},"devDependencies":{"@babel/plugin-proposal-class-properties":"^7.8.3","@mozilla-frontend-infra/node-lint":"^2.0.0","@neutrinojs/node":"^9.1.0","eslint":"^6.8.0","neutrino":"^9.1.0","webpack":"^4.41.6","webpack-cli":"^3.3.11"},"dependencies":{"immutable":"^4.0.0-rc.12","rxjs":"^6.5.4","source-map-support":"^0.5.16","terminal-kit":"^1.33.15"},"description":"`@eliperelman/in-memory-db` is a tiny demo Node.js CLI app demonstrating a running in-memory database backed by Immutable.js.","_id":"@eliperelman/in-memory-db@1.0.0","_nodeVersion":"13.9.0","_npmVersion":"6.13.7","_npmUser":{"name":"eliperelman","email":"eli@eliperelman.com"},"dist":{"integrity":"sha512-Yfw54+aoLWGQelgppcv9iu5G8FyXYDX5r2BtRJZNKcGdwFRY4ae4wjxbB0s7IXrEoPQDQP56EdsojP+IAIAC6w==","shasum":"f70c47e348026548cf99895399c7fb046d782fb8","tarball":"https://registry.npmjs.org/@eliperelman/in-memory-db/-/in-memory-db-1.0.0.tgz","fileCount":5,"unpackedSize":16497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXLJNCRA9TVsSAnZWagAAt+MP/RfdF8idcbEGHky04oUb\nCmJfzeyImHqjLGFWgNGVuiP87WGjk8D30fTHRgwjvcUo7l9IZAoGIAf2vxv7\nf94lqyskKQyTMq2SgV2G88fr1dElOwPJmUoiystb/5HWacV9fhgzM8F5JHMI\nwAQZzJOAftg/9kotkGAqsvvwANZf+K7rA3BbCM/ZHDNbDY5Vvl+4Go6zbB1c\nA/gvA1gbYFhypqsRgxiRQAqT60MTgdRkL625FQ/Z7BsKruJSuQa760zmBhrh\n7JXjTMHoNiUK2o/V6eQVRx77nLGf9dTzNI2VVQYYD8ZSPOI9R1FT+5V9sDa0\naYLJrnBVk+16rnkC5f6zF3sBrA7P6oMHgu5j/5JBBJeGMq+4zoSCQtxmQKc/\nzLrMbgdwOHJ3ol+OeiJOdF2Xp85CAehTtSBSVVq8F0rImVODiFdWwtXKTNfL\np12GoIB1p3id3F7Q2c84m+V8zi0mbSxWd1j+mKZBkpYztYINLkI6Xx4NV/kt\nLUuuVTwmtw9WUdc8t3qoRSkeoMBk4Pt1jF8o39niM29Gk/08W5OATYY5bSqN\namuvYSAr/ULIFDv36ihYbxFmFGKsLg2TwKahHehnpJ5U2Fz70fRtZX4+d8JT\nToNIcMN9sImMUMZ2ONlBoMnW7SlcUgBNb1Td40YPWgfO3JDhcjlqlSMf48qR\nUuI/\r\n=/xmE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICUq7t+JuJtcilOdLd0+l3azmJ97h+4sgssXfqtTcWLHAiEAjkh3aZvNhV77LW2Z/kef8D4CHlGChAtv+//4DFVVpb0="}]},"maintainers":[{"name":"eliperelman","email":"eli@eliperelman.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/in-memory-db_1.0.0_1583133260720_0.2562810449019577"},"_hasShrinkwrap":false}},"time":{"created":"2020-03-02T07:14:20.720Z","1.0.0":"2020-03-02T07:14:20.878Z","modified":"2022-04-05T07:12:07.859Z"},"maintainers":[{"name":"eliperelman","email":"eli@eliperelman.com"}],"description":"`@eliperelman/in-memory-db` is a tiny demo Node.js CLI app demonstrating a running in-memory database backed by Immutable.js.","author":{"name":"Eli Perelman","email":"eli@eliperelman.com"},"license":"MIT","readme":"# @eliperelman/in-memory-db\n\n`@eliperelman/in-memory-db` is a tiny demo Node.js CLI app demonstrating\na running in-memory database backed by Immutable.js.\n\n## Requirements\n\n- Node.js 12+\n- npm v5.4+\n\n## Usage\n\n`@eliperelman/in-memory-db` can be consumed directly from the terminal\nvia `npx`:\n\n\n```bash\nnpx @eliperelman/in-memory-db\n```\n\nThis will launch you directly into a database session prompt:\n\n```bash\n>> \n```\n\nYou can use the following functions to interact with the database:\n\n```bash\n# Sets the name in the database to the given value.\nSET [name] [value]\n\n# Prints the value for the given name.\n# If the value is not in the database, prints N​ULL.\nGET [name]\n\n# Deletes the value from the database.\nDELETE [name]\n\n# Returns the number of names that have the given value assigned to them.\n# If that value is not assigned anywhere, prints 0​.\nCOUNT [value]\n\n# Exits the database.\nEND\n```\n\nThe in-memory database also supports transactions via `BEGIN`, `ROLLBACK`, and `COMMIT`:\n\n```bash\n# Begins a new transaction.\nBEGIN\n\n# Rolls back the most recent transaction.\nROLLBACK\n\n# Commits ​all​ of the open transactions.\nCOMMIT\n```\n","readmeFilename":"README.md"}