{"_id":"@adriantek/stool.db","_rev":"1-a048080c334cc6cd9ffc57322ba4ec55","name":"@adriantek/stool.db","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"author":{"name":"AdriánTek"},"bugs":{"url":"https://github.com/adriantek0/stool.db/issues"},"dependencies":{"better-sqlite3":"^7.1.1","lodash":"^4.17.20"},"deprecated":false,"description":"A free and fast next generation SQLite database.","keywords":["database","storing","values","easy","sqlite","sqlite3","db"],"license":"MIT","main":"src/index.js","name":"@adriantek/stool.db","repository":{"type":"git","url":"git+https://github.com/adriantek0/stool.db.git"},"version":"1.0.0","typings":"./index.d.ts","gitHead":"845cd779095c73d1cd7e9262f5884a098c6f4ff5","homepage":"https://github.com/adriantek0/stool.db#readme","_id":"@adriantek/stool.db@1.0.0","_nodeVersion":"16.8.0","_npmVersion":"7.21.1","dist":{"integrity":"sha512-RhGzPK4R/TsMvnxArZaszKosZYpCeRK2xo04h72/PSZTV48dFI1oPkopo0oyT1zsl6c0Kfimwjr4zN38dMh0tw==","shasum":"02405c8a0300f7366991e6b7b9e32a575725021e","tarball":"https://registry.npmjs.org/@adriantek/stool.db/-/stool.db-1.0.0.tgz","fileCount":13,"unpackedSize":19001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKnkKCRA9TVsSAnZWagAAxB0QAKQYsr+rQMRqCQONdAit\nfTNQ/wPG4H/C0qecxHBmXH/bSKdXbRQV4CdY0+0Ciyanq5TtYDxZyx4w2Vnh\nGC8ufAOFUyMmax9v5+xRiwwP9Fi+jh5Qlwe/U5u3t5AOd1X2sWz1ua+TBso2\nkTVYUvSus3SEBrMH35Ff1JSqqUj2qxEoaTKAMFvEflPayuss88OHLHAOfW3W\nYw15N1ZdxfosAQUyVxySWkfuKmzv9G6uXbIs5SvytUJySxkjfdtWJMPDyWl+\nGtcm49rLZk4LN9P1cyKIdW9oqBoTlftPE+d3+bluNiI5ZYb2NKSsKbU8KDx8\nsE0iqe9+TPEvA6ptaiVz27pxW9yoHf5NTNStA9ImrgXl92x6ypA7g3qEfj0w\nxF2v2U5+S7+XaDnE5cb+SNIXH6rkTAONpuTP+jafRz+Hv6+Cpo2Cg4HwINdy\nxOBMYPuTidMaH0TqwegjMIGEBph0+5fah8z/9tLm8isdVcuoWrPusbu8mpww\n3qfcgcwDjGSkQD91JBHwO8ijjWQH7loVEUsIaeIRzW0FPIPCo/Qd7V724x5X\n9HFeDF76yBpu5m+u7P4hXG9CRPN8NzVpaLvMfuuPUVspSIYCNUb+ciUz2GbA\nSCXHgnH2YjfWNzosYjjBJZWB9oFNeFd1ytDdLjJhp1Nka4YuN7TSH13mtjVS\n1G/O\r\n=pAbc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5NrqW5H13fs0Y2RgmmZYhVrWATMANRzuiU+hEii0DpQIhAIUjCXoUSxFdHeHx8sFdpI4lThw+ACi2tsS4Defmpqeq"}]},"_npmUser":{"name":"adriantek","email":"discordsyntax75@gmail.com"},"directories":{},"maintainers":[{"name":"adriantek","email":"discordsyntax75@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stool.db_1.0.0_1630173450158_0.12376865358850342"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-28T17:57:30.071Z","1.0.0":"2021-08-28T17:57:30.301Z","modified":"2022-04-04T11:37:31.574Z"},"maintainers":[{"name":"adriantek","email":"discordsyntax75@gmail.com"}],"description":"A free and fast next generation SQLite database.","homepage":"https://github.com/adriantek0/stool.db#readme","keywords":["database","storing","values","easy","sqlite","sqlite3","db"],"repository":{"type":"git","url":"git+https://github.com/adriantek0/stool.db.git"},"author":{"name":"AdriánTek"},"bugs":{"url":"https://github.com/adriantek0/stool.db/issues"},"license":"MIT","readme":"\n# 📦 stool.db\nstool.db is a safe, simple, reliable, powerful and fast database based on better-sqlite3. It can be used by any user due to its simplicity and usability.\n\n## 📋 Features\n\n- Simplicity for any user.\n- Speed and performance\n- Regular updates\n- Cross platform\n- Persistent data. Data is not erased on reboot.\n- No need to build large and complex servers. The information is saved in the same project.\n  \n## 📚 Usage\n\n```javascript\nconst nextdb = require('stool.db');\n \n// Setting an object in the database:\nnextdb.set('userInfo', { difficulty: 'Easy' });\n// -> { difficulty: 'Easy' }\n \n// Pushing an element to an array (that doesn't exist yet) in an object:\nnextdb.push('userInfo.items', 'Sword');\n// -> { difficulty: 'Easy', items: ['Sword'] }\n \n// Adding to a number (that doesn't exist yet) in an object:\nnextdb.add('userInfo.balance', 500);\n// -> { difficulty: 'Easy', items: ['Sword'], balance: 500 }\n \n// Repeating previous examples:\nnextdb.push('userInfo.items', 'Watch');\n// -> { difficulty: 'Easy', items: ['Sword', 'Watch'], balance: 500 }\nnextdb.add('userInfo.balance', 500);\n// -> { difficulty: 'Easy', items: ['Sword', 'Watch'], balance: 1000 }\n \n// Fetching individual properties\nnextdb.get('userInfo.balance'); // -> 1000\nnextdb.get('userInfo.items'); // ['Sword', 'Watch']\n```\n\n## 🔒 Methods\n\n- new db.table(name)\n- .add(key, number, [options]) -> updatedRow\n- .all() -> array\n- .delete(key, [options]) -> boolean\n- .get(key, [options]) -> row\n- .has(key, [options]) -> boolean\n- .push(key, element, [options]) -> updatedRow\n- .set(key, data, [options]) -> updatedRow\n- .subtract(key, number, [options]) -> updatedRow\n\n  \n## 🔖 Installation\n\nIf you're having troubles installing, please follow [this troubleshooting guide](https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/troubleshooting.md).\n\n- Windows & Linux\n```bash\n  npm install stool.db\n```\n\n- MacOS\n    - Install: XCode\n    - Run: `npm i -g node-gyp in terminal`\n    - Run: `node-gyp --python /path/to/python2.7` (skip this step if you didn't install python 3.x)\n    - Run: `npm i stool.db`","readmeFilename":"README.md"}