{"_id":"@bluaxolotl/sql.js-as-sqlite3","_rev":"2-5ff73c15b6fc9d63f6eedfa9411cff9c","name":"@bluaxolotl/sql.js-as-sqlite3","dist-tags":{"latest":"0.2.4"},"versions":{"0.2.2":{"name":"@bluaxolotl/sql.js-as-sqlite3","version":"0.2.2","keywords":["excel","xlsx","browser","json"],"author":{"name":"catamphetamine","email":"purecatamphetamine@gmail.com"},"license":"MIT","_id":"@bluaxolotl/sql.js-as-sqlite3@0.2.2","maintainers":[{"name":"bluaxolotl","email":"plush.gamer.456@gmail.com"}],"homepage":"https://github.com/planet-bluto/sql.js-as-sqlite3#readme","bugs":{"url":"https://github.com/planet-bluto/sql.js-as-sqlite3/issues"},"dist":{"shasum":"6afae4e2141395467abada8260bad00810c9bd4b","tarball":"https://registry.npmjs.org/@bluaxolotl/sql.js-as-sqlite3/-/sql.js-as-sqlite3-0.2.2.tgz","fileCount":29,"integrity":"sha512-8vxBtVBd57pM2Fmvwd9LMkzCB/tgkV1EH+YmK7G6L6MDfEmnFVK4ThDub7POEeaJ1sRzyBSXU6n50L5Q16b4aQ==","signatures":[{"sig":"MEUCIGZEnBwD2k/LheIOZ+RydHw7/R9kau445bxLivvF5Ys+AiEA/h0rPonyETGIFUmSAtSnUl8OOWwd79TJlzqSVjuKSbA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":202362},"main":"index.cjs","type":"module","types":"./index.d.ts","module":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"gitHead":"12e55f18d07ad621b07ab26414f0e31d205fde74","scripts":{"test":"mocha --colors --bail --reporter spec --require ./test/setup.js \"./{,!(node_modules|commonjs|modules)/**/}*.test.js\" --recursive","build":"npm-run-all clean-for-build build-commonjs build-es6-modules browser-build","browser-build":"rollup --config rollup.config.mjs","build-commonjs":"npm-run-all build-commonjs-modules build-commonjs-package.json","prepublishOnly":"npm-run-all build test browser-build","clean-for-build":"rimraf --glob ./commonjs/**/* ./modules/**/*","build-es6-modules":"cross-env BABEL_ENV=es6 babel ./source --out-dir ./modules --source-maps","build-commonjs-modules":"cross-env BABEL_ENV=commonjs babel ./source --out-dir ./commonjs --source-maps","build-commonjs-package.json":"node runnable/create-commonjs-package-json.js"},"_npmUser":{"name":"bluaxolotl","email":"plush.gamer.456@gmail.com"},"repository":{"url":"git+https://github.com/planet-bluto/sql.js-as-sqlite3.git","type":"git"},"_npmVersion":"10.8.2","description":"Fork of 'https://gitlab.com/catamphetamine/sql.js-as-sqlite3' that exposes database data in a property on globalThis","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","dependencies":{"eventemitter3":"^5.0.1"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.0.0","mocha":"^10.2.0","rimraf":"^5.0.5","rollup":"3","sql.js":"^1.10.3","core-js":"^3.35.1","cross-env":"^7.0.3","sequelize":"^6.35.2","@babel/cli":"^7.23.4","@babel/core":"^7.23.7","npm-run-all":"^4.1.5","better-npm-run":"^0.1.1","@babel/register":"^7.23.7","@babel/preset-env":"^7.23.8","rollup-plugin-json":"^4.0.0","regenerator-runtime":"^0.14.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","@babel/plugin-transform-for-of":"^7.23.6","@babel/plugin-transform-runtime":"^7.23.7","@babel/plugin-proposal-class-properties":"^7.17.12"},"peerDependencies":{"sql.js":"*"},"_npmOperationalInternal":{"tmp":"tmp/sql.js-as-sqlite3_0.2.2_1727174454482_0.49552587945899673","host":"s3://npm-registry-packages"}},"0.2.3":{"name":"@bluaxolotl/sql.js-as-sqlite3","version":"0.2.3","keywords":["excel","xlsx","browser","json"],"author":{"name":"catamphetamine","email":"purecatamphetamine@gmail.com"},"license":"MIT","_id":"@bluaxolotl/sql.js-as-sqlite3@0.2.3","maintainers":[{"name":"bluaxolotl","email":"plush.gamer.456@gmail.com"}],"homepage":"https://github.com/planet-bluto/sql.js-as-sqlite3#readme","bugs":{"url":"https://github.com/planet-bluto/sql.js-as-sqlite3/issues"},"dist":{"shasum":"7b1088a9665aca71236c990b29b1048189914ff1","tarball":"https://registry.npmjs.org/@bluaxolotl/sql.js-as-sqlite3/-/sql.js-as-sqlite3-0.2.3.tgz","fileCount":29,"integrity":"sha512-vm+X672JxTrYOWX4cP+YeXlxm5TMFj2PU8yLjU3ZB4zvM4A8tdiXLyDE3d8AtulWOJKbi/MbS1rPyPUIVezjeQ==","signatures":[{"sig":"MEYCIQCNiRDBTghThNa/M9Rh7pssQ4XZZrt5/WuhHCNTV8p3nwIhAM5eejYe5Jw+4tyePKi+1GtZWeMToBAx5R+aNVpxvm7v","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":206789},"main":"index.cjs","type":"module","types":"./index.d.ts","module":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"gitHead":"12e55f18d07ad621b07ab26414f0e31d205fde74","scripts":{"test":"mocha --colors --bail --reporter spec --require ./test/setup.js \"./{,!(node_modules|commonjs|modules)/**/}*.test.js\" --recursive","build":"npm-run-all clean-for-build build-commonjs build-es6-modules browser-build","browser-build":"rollup --config rollup.config.mjs","build-commonjs":"npm-run-all build-commonjs-modules build-commonjs-package.json","prepublishOnly":"npm-run-all build test browser-build","clean-for-build":"rimraf --glob ./commonjs/**/* ./modules/**/*","build-es6-modules":"cross-env BABEL_ENV=es6 babel ./source --out-dir ./modules --source-maps","build-commonjs-modules":"cross-env BABEL_ENV=commonjs babel ./source --out-dir ./commonjs --source-maps","build-commonjs-package.json":"node runnable/create-commonjs-package-json.js"},"_npmUser":{"name":"bluaxolotl","email":"plush.gamer.456@gmail.com"},"repository":{"url":"git+https://github.com/planet-bluto/sql.js-as-sqlite3.git","type":"git"},"_npmVersion":"10.8.2","description":"Fork of 'https://gitlab.com/catamphetamine/sql.js-as-sqlite3' that exposes database data in a property on globalThis","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","dependencies":{"eventemitter3":"^5.0.1"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.0.0","mocha":"^10.2.0","rimraf":"^5.0.5","rollup":"3","sql.js":"^1.10.3","core-js":"^3.35.1","cross-env":"^7.0.3","sequelize":"^6.35.2","@babel/cli":"^7.23.4","@babel/core":"^7.23.7","npm-run-all":"^4.1.5","better-npm-run":"^0.1.1","@babel/register":"^7.23.7","@babel/preset-env":"^7.23.8","rollup-plugin-json":"^4.0.0","regenerator-runtime":"^0.14.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","@babel/plugin-transform-for-of":"^7.23.6","@babel/plugin-transform-runtime":"^7.23.7","@babel/plugin-proposal-class-properties":"^7.17.12"},"peerDependencies":{"sql.js":"*"},"_npmOperationalInternal":{"tmp":"tmp/sql.js-as-sqlite3_0.2.3_1727174910380_0.9366484643517379","host":"s3://npm-registry-packages"}},"0.2.4":{"name":"@bluaxolotl/sql.js-as-sqlite3","version":"0.2.4","description":"Fork of 'https://gitlab.com/catamphetamine/sql.js-as-sqlite3' that exposes database data in a property on globalThis","module":"index.js","main":"index.cjs","types":"./index.d.ts","type":"module","exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"sideEffects":false,"scripts":{"test":"mocha --colors --bail --reporter spec --require ./test/setup.js \"./{,!(node_modules|commonjs|modules)/**/}*.test.js\" --recursive","clean-for-build":"rimraf --glob ./commonjs/**/* ./modules/**/*","build-commonjs-modules":"cross-env BABEL_ENV=commonjs babel ./source --out-dir ./commonjs --source-maps","build-commonjs-package.json":"node runnable/create-commonjs-package-json.js","build-commonjs":"npm-run-all build-commonjs-modules build-commonjs-package.json","build-es6-modules":"cross-env BABEL_ENV=es6 babel ./source --out-dir ./modules --source-maps","browser-build":"rollup --config rollup.config.mjs","build":"npm-run-all clean-for-build build-commonjs build-es6-modules browser-build","prepublishOnly":"npm-run-all build test browser-build"},"peerDependencies":{"sql.js":"*"},"dependencies":{"eventemitter3":"^5.0.1"},"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.7","@babel/plugin-proposal-class-properties":"^7.17.12","@babel/plugin-transform-for-of":"^7.23.6","@babel/plugin-transform-runtime":"^7.23.7","@babel/preset-env":"^7.23.8","@babel/register":"^7.23.7","better-npm-run":"^0.1.1","chai":"^5.0.0","core-js":"^3.35.1","cross-env":"^7.0.3","mocha":"^10.2.0","npm-run-all":"^4.1.5","regenerator-runtime":"^0.14.1","rimraf":"^5.0.5","rollup":"3","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-json":"^4.0.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-terser":"^7.0.2","sequelize":"^6.35.2","sql.js":"^1.10.3"},"repository":{"type":"git","url":"git+https://github.com/planet-bluto/sql.js-as-sqlite3.git"},"keywords":["excel","xlsx","browser","json"],"author":{"name":"catamphetamine","email":"purecatamphetamine@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/planet-bluto/sql.js-as-sqlite3/issues"},"homepage":"https://github.com/planet-bluto/sql.js-as-sqlite3#readme","_id":"@bluaxolotl/sql.js-as-sqlite3@0.2.4","gitHead":"12e55f18d07ad621b07ab26414f0e31d205fde74","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-XjcOVQQ3N/hjjmuL2wloPh+hFpRAuEJ0vQA+ITH1WDuw98bCpsta7Zqvw19NRNl0coKruWvMO152rHMP/hj+/w==","shasum":"cd223c8056678b84375fe93928485a1649333dba","tarball":"https://registry.npmjs.org/@bluaxolotl/sql.js-as-sqlite3/-/sql.js-as-sqlite3-0.2.4.tgz","fileCount":29,"unpackedSize":206814,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBiowUPfF2twggIiZld1ltQvTq/yCZ3VOFpZjtHszsw2AiEAwA2YRsjG8EvJj4UDPflVEm20Vlj/nwSPGB3xbhKgC88="}]},"_npmUser":{"name":"bluaxolotl","email":"plush.gamer.456@gmail.com"},"directories":{},"maintainers":[{"name":"bluaxolotl","email":"plush.gamer.456@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sql.js-as-sqlite3_0.2.4_1727175202610_0.6929895047119059"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-24T10:40:54.354Z","modified":"2024-09-24T10:53:23.019Z","0.2.2":"2024-09-24T10:40:54.683Z","0.2.3":"2024-09-24T10:48:30.577Z","0.2.4":"2024-09-24T10:53:22.845Z"},"bugs":{"url":"https://github.com/planet-bluto/sql.js-as-sqlite3/issues"},"author":{"name":"catamphetamine","email":"purecatamphetamine@gmail.com"},"license":"MIT","homepage":"https://github.com/planet-bluto/sql.js-as-sqlite3#readme","keywords":["excel","xlsx","browser","json"],"repository":{"type":"git","url":"git+https://github.com/planet-bluto/sql.js-as-sqlite3.git"},"description":"Fork of 'https://gitlab.com/catamphetamine/sql.js-as-sqlite3' that exposes database data in a property on globalThis","maintainers":[{"name":"bluaxolotl","email":"plush.gamer.456@gmail.com"}],"readme":"# `sql.js-as-sqlite3`\n\n# This is a fork of [catamphetamine/sql.js-as-sqlite3](https://gitlab.com/catamphetamine/sql.js-as-sqlite3) that exposes the database data to a property ``SQL_DATABASES`` in ``globalThis``/``window``\n\nA wrapper around [`sql.js`](https://www.npmjs.com/package/sql.js) to make it look like [`sqlite3`](https://www.npmjs.com/package/sqlite3).\n\nBased on [this code by @domasx2](https://github.com/sql-js/sql.js/issues/91#issuecomment-169655900).\n\n## Install\n\n```js\nnpm install sql.js sql.js-as-sqlite3 --save\n```\n\nIf you're not using a bundler then use a [standalone version from a CDN](#browser-no-bundler).\n\n## Use\n\n### Node.js\n\n```js\nimport sqlJsAsSqlite3 from 'sql.js-as-sqlite3'\n\nconsole.log(sqlJsAsSqlite3)\n```\n\n### Browser (with bundler)\n\n```js\nimport sqlJsAsSqlite3 from 'sql.js-as-sqlite3'\nimport initSqlJs from 'sql.js'\n\nsqlJsAsSqlite3.configure({\n  // `sql.js` package default export.\n  initSqlJs,\n  // Base URL for `sql.js` to get the `*.wasm` files like `sql-wasm-debug.wasm`.\n  // The version of the `*.wasm` files must match the version of the `sql.js` package.\n  // Must end with a \"/\".\n  wasmFileBaseUrl: 'https://cdnjs.cloudflare.com/ajax/libs/sql.js/1.10.2/'\n})\n\nconsole.log(sqlJsAsSqlite3)\n```\n\n### Browser (no bundler)\n\nOne can use any npm CDN service, e.g. [unpkg.com](https://unpkg.com) or [jsdelivr.net](https://jsdelivr.net)\n\n```html\n<script src=\"https://unpkg.com/sql.js-as-sqlite3@0.2.x/bundle/sql.js-as-sqlite3.min.js\"></script>\n\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/sql.js/1.10.2/sql-wasm.min.js\"></script>\n<script>\n  // Base URL for `sql.js` to get the `*.wasm` files like `sql-wasm-debug.wasm`.\n  // The version of the `*.wasm` files must match the version of `sql.js`.\n  // Must end with a \"/\".\n  SQL_JS_WASM_FILE_BASE_URL = 'https://cdnjs.cloudflare.com/ajax/libs/sql.js/1.10.2/'\n</script>\n\n<script>\n  console.log(sqlJsAsSqlite3)\n</script>\n```\n\n## Sequelize\n\nThis package could be used to make [`sequelize`](https://www.npmjs.com/package/sequelize) work with `sqlite` database:\n\n```js\nimport Sequelize from 'sequelize'\nimport sqlJsAsSqlite3 from 'sql.js-as-sqlite3'\n\nconst sequelize = new Sequelize('sqlite://:memory:', {\n  dialectModule: sqlJsAsSqlite3\n})\n```\n\nSee a [test](https://gitlab.com/catamphetamine/sql.js-as-sqlite3/-/blob/main/test/sequelize.test.js) for a server-side example.\n\nFor a client-side example, see [`sequelize-browser`](https://www.npmjs.com/package/sequelize-browser) package.\n\n<!--\nSee `./test/sequelize.js`.\n-->\n\n## TypeScript\n\nThis library comes with TypeScript \"typings\". If you happen to find any bugs in those, create an issue.\n\n## GitHub\n\nOn March 9th, 2020, GitHub, Inc. silently [banned](https://medium.com/@catamphetamine/how-github-blocked-me-and-all-my-libraries-c32c61f061d3) my account (erasing all my repos, issues and comments, even in my employer's private repos) without any notice or explanation. Because of that, all source codes had to be promptly moved to GitLab. The [GitHub repo](https://github.com/catamphetamine/sql.js-as-sqlite3) is now only used as a backup (you can star the repo there too), and the primary repo is now the [GitLab one](https://gitlab.com/catamphetamine/sql.js-as-sqlite3). Issues can be reported in any repo.\n\n## License\n\n[MIT](LICENSE)\n\n","readmeFilename":"README.md"}