{"_id":"@allnulled/sqlite-data-system","_rev":"1-ec94d618a9c0ee6fd739421c4a75fff0","name":"@allnulled/sqlite-data-system","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@allnulled/sqlite-data-system","version":"1.0.0","keywords":[],"author":{"name":"allnulled"},"license":"WTFPL","_id":"@allnulled/sqlite-data-system@1.0.0","maintainers":[{"name":"allnulled","email":"todosanulados@gmail.com"}],"dist":{"shasum":"7801ba70ad1390ca35fcfb781675e392ea1f0418","tarball":"https://registry.npmjs.org/@allnulled/sqlite-data-system/-/sqlite-data-system-1.0.0.tgz","fileCount":17,"integrity":"sha512-qlk7qbA3ew1vNRa8V3wPUgd2nsyT0C24zaK1lYuma2TOGN/rqFs4X+MfeOaQ6VjIN/9Qn86psQccoFC22hNYzg==","signatures":[{"sig":"MEUCIQCBjfjTWVWG0eZYOuDhkxkh/Pasa4DZHBVlhwUQmXNiWQIgKGiNuWF1/kiztXk6ZnK0UAUV9x4jWPNPHsJScvF6K1o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":806831},"main":"dist/sqlite-data-system.unbundled.js","gitHead":"8ed4a0837c33ee32023d23b1ccc9cdde209e0add","scripts":{"test":"npx mocha test/auth.js && npx mocha test/rest.js && npx http-server -c-1 test/browser -o","build":"node build.js && npm run test"},"_npmUser":{"name":"allnulled","email":"todosanulados@gmail.com"},"_npmVersion":"9.6.7","description":"Auth and Rest data system with sqlite for node.js and browser through the same API.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"sqlite3":"^5.1.7"},"_hasShrinkwrap":true,"devDependencies":{"@allnulled/simplebundler":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sqlite-data-system_1.0.0_1734734589228_0.8173337580778692","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@allnulled/sqlite-data-system","version":"1.0.1","description":"Auth and Rest data system with sqlite for node.js and browser through the same API.","main":"dist/sqlite-data-system.unbundled.js","scripts":{"build":"node build.js && npm run test:nodejs","test":"npm run build && npm run test:nodejs && npm run test:browser","test:nodejs":"npx mocha test/auth.js && npx mocha test/rest.js","test:browser":"npx http-server -c-1 test/browser -o"},"keywords":[],"author":{"name":"allnulled"},"license":"WTFPL","devDependencies":{"@allnulled/simplebundler":"^1.0.0"},"dependencies":{"sqlite3":"^5.1.7"},"directories":{"test":"test"},"gitHead":"f59f9425da8113b7c54e42dc534e9ffbb9dffa1c","_id":"@allnulled/sqlite-data-system@1.0.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-yTJIeRhNJW3PmWbcqRKWqru41X4e7McEN+sVKgtk1oPmo8VDvSYPC1ATQkDtEHIL3cV8HiweUEwSz3ZCg+aUtw==","shasum":"e8735bdfc1af7a9d8bfc3bbe9c4bf023fc4cda4b","tarball":"https://registry.npmjs.org/@allnulled/sqlite-data-system/-/sqlite-data-system-1.0.1.tgz","fileCount":18,"unpackedSize":864038,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJAbdcGUTv2NDN8OVkaPoJnxzjprKTVxixjZgOPHEdFgIhAJYu+JVuXfzeISGDGE5VCcxkuCw7uWHNt0QimR5iB4Lw"}]},"_npmUser":{"name":"allnulled","email":"todosanulados@gmail.com"},"maintainers":[{"name":"allnulled","email":"todosanulados@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sqlite-data-system_1.0.1_1734736991594_0.268641049783954"},"_hasShrinkwrap":true}},"time":{"created":"2024-12-20T22:43:09.124Z","modified":"2024-12-20T23:23:11.991Z","1.0.0":"2024-12-20T22:43:09.458Z","1.0.1":"2024-12-20T23:23:11.834Z"},"author":{"name":"allnulled"},"license":"WTFPL","keywords":[],"description":"Auth and Rest data system with sqlite for node.js and browser through the same API.","maintainers":[{"name":"allnulled","email":"todosanulados@gmail.com"}],"readme":"# sqlite-data-system\n\nAuth and Rest data system with sqlite for node.js and browser through the same API.\n\n## Installation\n\n### In node.js\n\n```sh\nnpm i -s @allnulled/sqlite-data-system\n```\n\nThen in javascript:\n\n```js\nconst SqliteDataSystem = require(\"@allnulled/sqlite-data-system\");\nconst datasys = SqliteDataSystem.create();\n```\n\n### In browser\n\n```html\n<script src=\"node_modules/@allnulled/sqlite-data-system/dist/sql-wasm.js\"></script>\n<script src=\"node_modules/@allnulled/sqlite-data-system/dist/sqlite-data-system.bundled.js\"></script>\n```\n\nThen in javascript:\n\n```js\nconst datasys = window.SqliteDataSystem.create();\n```\n\nAlso, move **both files** `test/browser/sql-wasm.js` and `test/browser/sql-wasm.wasm`, one beside the other, to the same directory of the `*.html` you are using them in, so you can load the sqlite for the browser library, which works with `*.wasm` file.\n\n## Usage\n\nSee the [tests](./test) with mocha to get the idea of the API.\n\n## Use cases\n\n- Database-oriented applications\n- Targeting browser and node.js\n- Based on SQLite\n- Requiring a REST system (because the Auth system in the front is like a bit senseless)","readmeFilename":"README.md"}