{"_id":"@aeroware/slow.db","_rev":"1-c56742e8d3ef7685e62120be2846dfdc","name":"@aeroware/slow.db","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aeroware/slow.db","version":"1.0.0","description":"slow.db aims to make using a database easy but at the price of being slow","main":"index.js","scripts":{"watch":"tsc -watch","dev":"nodemon -w *.ts test.ts","test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{"@types/uuid":"^8.3.0","uuid":"^3.4.0"},"keywords":[],"author":{"name":"im-lonely","email":"cursors.dev@gmail.com"},"contributors":[{"name":"[Cursors]"},{"name":"Github  cursorsdottsx"},{"name":"Discord [Cursors]#9257"},{"name":"Email   cursors.dev@gmail.com"}],"_id":"@aeroware/slow.db@1.0.0","_nodeVersion":"14.11.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Ch31l/i4PaIyDuAnn5a3nT78prJibyPsU2xM5XKv/Ey3DA0yLIW6XFtUN5U82PtoZLCVUhT2R7UXb7KhE8a/zQ==","shasum":"0b549f71d5bf703a0d15a8027ee20d1e7b778dfc","tarball":"https://registry.npmjs.org/@aeroware/slow.db/-/slow.db-1.0.0.tgz","fileCount":7,"unpackedSize":27286,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgFwEBCRA9TVsSAnZWagAAq8wQAKQh7HRhPDgewF0jcO5V\nEDMs/lody7zu8TeU8nPMaNia7qQPxwqnxXMkGs3NHj5H4jByKbXlwnBJ/6tK\nmhGbeE6htbjUuhoSOlKV8Cl2Eb6picNkyNf1k5H+yqP+ThK6f4RNS0XGNUE+\n5LqnWCz3c241aqZjSgexdCE8e4r21rQdhZqwqx10sjczAXJ51UHkYpO1MTg7\nWoptLsRSNVMdk53LOB4wTNGIYvCIp5hrF/GhlUdFhTKNcqu0U4seclNphznD\nUStChYdaV3h2z12Oi5vXvSti7T7MXkYVLQ+i9gq6618n0cpMN3XgcjiqGpi6\nM7wZS02zXx1wsLhZIAm+5OhS41lpZggpGYvmTEGQkBWwdYL4XJnfEf0zUWKI\nxgKJAIyaeSWzflO2SrjauEX1pzTVBH4f8XVtXVYqOlKkfrMkH3VfagAyeTHh\nn8ak0jYl4UOqtQGa2vG92KFrDv1V8503dPqtKrKI1QWzx7v7xaYejf6pKh28\nmdXUe9C4DJlc/Ew6lJwBkMrrvdrFG2pgkVsDWC5BNR6Le46d4xvjML4n0PD7\ny8YXB1OR6JsFpNUAaTs6TZ8H/NSXRSfjv+WM8aoM3VupSt7WNud8p4f9ej/E\nO1NC3g5K9PcRG1oMnbTRr8BtC0F4kbT+p5BYGRg0zJ+jf4+1KJ6rPtbj0hMb\nQHMS\r\n=Wzp5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDhQowg7ZU6V2zndao9spTtIwuDmBOR9G0wVxnesVyEsAiAMaQO+wrfCJ6ct4Sd98Jqs4HV/BK8HCif6INf7OjjUMA=="}]},"_npmUser":{"name":"cursorspkg","email":"cursors.dev@gmail.com"},"directories":{},"maintainers":[{"name":"cursorspkg","email":"cursors.dev@gmail.com"},{"name":"dheerajpv","email":"dheerajpv16@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slow.db_1.0.0_1612120321455_0.46472980000402675"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-31T19:12:01.223Z","1.0.0":"2021-01-31T19:12:01.561Z","modified":"2022-04-04T11:49:30.675Z"},"maintainers":[{"name":"cursorspkg","email":"cursors.dev@gmail.com"},{"name":"dheerajpv","email":"dheerajpv16@gmail.com"}],"description":"slow.db aims to make using a database easy but at the price of being slow","keywords":[],"contributors":[{"name":"[Cursors]"},{"name":"Github  cursorsdottsx"},{"name":"Discord [Cursors]#9257"},{"name":"Email   cursors.dev@gmail.com"}],"author":{"name":"im-lonely","email":"cursors.dev@gmail.com"},"readme":"# slow.db\n\n### slow.db aims to make using a database easy but at the price of being slow.\n\nInspired by quick.db, slow.db is the opposite.\n\nslow.db employs JSON to persist data (yikes).\n\nEven though slow.db represents a degenerate database, we'll still recommend it to noobs as a prerequisite to actual databases.\n\nThis is because slow.db has some of the same ideas behind mongoose and mongodb.\n\nWe'd like to think of slow.db as a really bad mongodb for absolute noobs.\n\n### Features\n\nThese are literally all the features:\n\n-   Basic type validation\n-   API similar to mongoose's\n-   Asynchronous version\n\n### Installation\n\nUsing npm:\n\n```\nnpm install --save @aeroware/slow.db\n```\n\nUsing yarn:\n\n```\nyarn add @aeroware/slow.db\n```\n\nUsing your mom:\n\n```\nme: mom can i have mongoose?\nmom: no we already have mongoose at home\nat home: @aeroware/slow.db\n```\n\n### Example Usage\n\n#### Synchronous\n\n```js\nconst SlowDB = require(\"@aeroware/slow.db\");\n\n// create a synchronous driver\nconst db = new SlowDB();\n\n// create a model\nconst users = db.model(\"users\", {\n    username: String,\n    likes: Number,\n    hearts: Number,\n});\n\n// create a document\nconst bob = users.create({\n    username: \"bob\",\n    // no one likes bob :(\n    likes: 0,\n    hearts: 0,\n});\n\n// the new revolutionary apple product, iFoundBob\nconst iFoundBob = users.findOne({\n    username: \"bob\",\n});\n```\n\n#### Asynchronous\n\n```js\nconst SlowDB = require(\"@aeroware/slow.db\");\n\n// create an asynchronous driver\nconst db = SlowDB.async();\n\n// create a model\nconst users = await db.model(\"users\", {\n    username: String,\n    likes: Number,\n    hearts: Number,\n});\n\n// create a document\nconst bob = await users.create({\n    username: \"bob\",\n    // no one likes bob :(\n    likes: 0,\n    hearts: 0,\n});\n\n// the new revolutionary apple product, iFoundBob\nconst iFoundBob = await users.findOne({\n    username: \"bob\",\n});\n```\n\n### Documentation\n\nThe code has been decorated with some JSDoc.\n","readmeFilename":"README.md"}