{"_id":"@electric-sql/pglite-icu-full","_rev":"3-a0bf6ef76e1a02595e55aed52d9d1c37","name":"@electric-sql/pglite-icu-full","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"@electric-sql/pglite-icu-full","version":"0.0.1","keywords":["postgres","sql","database","wasm","pglite","initdb"],"author":{"name":"Electric DB Limited"},"license":"Apache-2.0","_id":"@electric-sql/pglite-icu-full@0.0.1","maintainers":[{"name":"thruflo","email":"thruflo+npm@gmail.com"},{"name":"icehaunter","email":"icehaunter@gmail.com"},{"name":"kylemathews","email":"mathews.kyle@gmail.com"},{"name":"sgwillis","email":"sam.willis@gmail.com"}],"homepage":"https://pglite.dev","bugs":{"url":"https://github.com/electric-sql/pglite/issues"},"dist":{"shasum":"975af60fb9923edea797121bf455b02bd2ed0518","tarball":"https://registry.npmjs.org/@electric-sql/pglite-icu-full/-/pglite-icu-full-0.0.1.tgz","fileCount":2,"integrity":"sha512-yt0fCrEI5I3+VX9V12LvYC/DPATUtk+VmiSLByljvZhDf9sFykVse+1bMm1bdHV7iXA0wDlnoIwh2rzm18lGLg==","signatures":[{"sig":"MEYCIQDPnBmqFgE/MrBgmq9u9E6ps8fsxbISz0kTuc9f0y06mQIhAIuglnKqJh04vn14KPgstFYyzycwA7q+Z72PmfGtMklk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2668},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"305e4eac5570f6ac21764b6f3fe3828e9dc48b85","private":false,"scripts":{"lint":"eslint ./tests --report-unused-disable-directives --max-warnings 0","test":"vitest","build":"tsup && cp static/* ./dist/","format":"prettier --write ./tests","typecheck":"tsc","stylecheck":"pnpm lint && prettier --check ./tests","check:exports":"attw . --pack --profile node16","prepublishOnly":"pnpm check:exports"},"_npmUser":{"name":"sgwillis","email":"sam.willis@gmail.com"},"repository":{"url":"git+https://github.com/electric-sql/pglite.git","type":"git","directory":"packages/pglite-icu-full"},"_npmVersion":"10.8.2","description":"ICU support","directories":{},"_nodeVersion":"18.20.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^1.3.1","@types/node":"^20.16.11","@types/emscripten":"^1.41.1","@electric-sql/pglite":"workspace:*","@arethetypeswrong/cli":"^0.18.1","@electric-sql/pglite-utils":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/pglite-icu-full_0.0.1_1779724222479_0.44477614986784864","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@electric-sql/pglite-icu-full","version":"0.0.2","keywords":["postgres","sql","database","wasm","pglite","initdb"],"author":{"name":"Electric DB Limited"},"license":"Apache-2.0","_id":"@electric-sql/pglite-icu-full@0.0.2","maintainers":[{"name":"thruflo","email":"thruflo+npm@gmail.com"},{"name":"icehaunter","email":"icehaunter@gmail.com"},{"name":"kylemathews","email":"mathews.kyle@gmail.com"},{"name":"sgwillis","email":"sam.willis@gmail.com"}],"homepage":"https://pglite.dev","bugs":{"url":"https://github.com/electric-sql/pglite/issues"},"dist":{"shasum":"1c185600cbbbe39367a385c972101a9bd13e8911","tarball":"https://registry.npmjs.org/@electric-sql/pglite-icu-full/-/pglite-icu-full-0.0.2.tgz","fileCount":10,"integrity":"sha512-K/yQbMlODpnwmjIPUkM6dFKVQjdGKVPArdjmlK275KVWDY+AbHCDEuvcDZXneQw8ELYKHnXhPEhJWSFUtpLk4A==","signatures":[{"sig":"MEUCIQDjHdsK03BevH/LGIDdTHorGaloQpZiieg8CgYNzqneqQIgKRwaPaxmLczQHDmA0gbbm7r00jYb1MPtKIHbdTEXO2k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@electric-sql%2fpglite-icu-full@0.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12823860},"main":"dist/index.cjs","type":"module","_from":"file:electric-sql-pglite-icu-full-0.0.2.tgz","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"private":false,"scripts":{"lint":"eslint ./tests --report-unused-disable-directives --max-warnings 0","test":"vitest","build":"tsup && cp static/* ./dist/","format":"prettier --write ./tests","typecheck":"tsc","stylecheck":"pnpm lint && prettier --check ./tests","check:exports":"attw . --pack --profile node16"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f51bb2e3-e151-410e-ae7c-0740d4fa90bf"}},"_resolved":"/tmp/5c7c10f3c7a932905d45cbf4d2278f62/electric-sql-pglite-icu-full-0.0.2.tgz","_integrity":"sha512-K/yQbMlODpnwmjIPUkM6dFKVQjdGKVPArdjmlK275KVWDY+AbHCDEuvcDZXneQw8ELYKHnXhPEhJWSFUtpLk4A==","repository":{"url":"git+https://github.com/electric-sql/pglite.git","type":"git","directory":"packages/pglite-icu-full"},"_npmVersion":"11.12.1","description":"ICU support","directories":{},"_nodeVersion":"24.15.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^1.3.1","@types/node":"^20.16.11","@types/emscripten":"^1.41.1","@electric-sql/pglite":"0.4.6","@arethetypeswrong/cli":"^0.18.1","@electric-sql/pglite-utils":"0.0.2"},"_npmOperationalInternal":{"tmp":"tmp/pglite-icu-full_0.0.2_1779728775279_0.6694418699755875","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@electric-sql/pglite-icu-full","version":"0.1.0","description":"ICU support","author":{"name":"Electric DB Limited"},"homepage":"https://pglite.dev","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/electric-sql/pglite.git","directory":"packages/pglite-icu-full"},"keywords":["postgres","sql","database","wasm","pglite","initdb"],"private":false,"publishConfig":{"access":"public"},"type":"module","types":"dist/index.d.ts","main":"dist/index.cjs","module":"dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"devDependencies":{"@arethetypeswrong/cli":"^0.18.1","@types/emscripten":"^1.41.1","@types/node":"^20.16.11","tsx":"^4.19.2","vitest":"^1.3.1","@electric-sql/pglite":"0.5.0","@electric-sql/pglite-utils":"0.0.2"},"scripts":{"build":"tsup && cp static/* ./dist/","check:exports":"attw . --pack --profile node16","lint":"eslint ./tests --report-unused-disable-directives --max-warnings 0","format":"prettier --write ./tests","typecheck":"tsc","stylecheck":"pnpm lint && prettier --check ./tests","test":"vitest"},"_id":"@electric-sql/pglite-icu-full@0.1.0","bugs":{"url":"https://github.com/electric-sql/pglite/issues"},"_integrity":"sha512-yZ0diEYEk2JKaQJ1UX27yMIeVL5J5TX4lWJ8LqLZOBD+BD8NcQt8XGeJfpvr+y+BcHIcsxc85Ud1cesHapOBJA==","_resolved":"/tmp/f4cd01b6455a03ab3b8c7ce59ace010c/electric-sql-pglite-icu-full-0.1.0.tgz","_from":"file:electric-sql-pglite-icu-full-0.1.0.tgz","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-yZ0diEYEk2JKaQJ1UX27yMIeVL5J5TX4lWJ8LqLZOBD+BD8NcQt8XGeJfpvr+y+BcHIcsxc85Ud1cesHapOBJA==","shasum":"a27eee1c2d2ed63b9c129bd0ef0baaa1892a987d","tarball":"https://registry.npmjs.org/@electric-sql/pglite-icu-full/-/pglite-icu-full-0.1.0.tgz","fileCount":10,"unpackedSize":12826173,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@electric-sql%2fpglite-icu-full@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHONJLWnaT510U22RtAVhnMxAw8fbrQNOQiOpdi44yAbAiEAhLfn0B2+MsI8r6hcvJnyVNFuV9qYjAk5GeqLuNeYgrw="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f51bb2e3-e151-410e-ae7c-0740d4fa90bf"}},"directories":{},"maintainers":[{"name":"thruflo","email":"thruflo+npm@gmail.com"},{"name":"icehaunter","email":"icehaunter@gmail.com"},{"name":"kylemathews","email":"mathews.kyle@gmail.com"},{"name":"sgwillis","email":"sam.willis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pglite-icu-full_0.1.0_1780394015647_0.41564055255152166"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-25T15:50:22.367Z","modified":"2026-06-02T09:53:36.234Z","0.0.1":"2026-05-25T15:50:22.613Z","0.0.2":"2026-05-25T17:06:15.610Z","0.1.0":"2026-06-02T09:53:35.944Z"},"bugs":{"url":"https://github.com/electric-sql/pglite/issues"},"author":{"name":"Electric DB Limited"},"license":"Apache-2.0","homepage":"https://pglite.dev","keywords":["postgres","sql","database","wasm","pglite","initdb"],"repository":{"type":"git","url":"git+https://github.com/electric-sql/pglite.git","directory":"packages/pglite-icu-full"},"description":"ICU support","maintainers":[{"name":"thruflo","email":"thruflo+npm@gmail.com"},{"name":"icehaunter","email":"icehaunter@gmail.com"},{"name":"kylemathews","email":"mathews.kyle@gmail.com"},{"name":"sgwillis","email":"sam.willis@gmail.com"}],"readme":"# pglite-icu-full\n\nA package containing all the data resources from [libicu](https://github.com/unicode-org/icu) that can be used with PGlite to build localized applications.\n\n## Installation\n\n```bash\nnpm install @electric-sql/pglite-icu-full\n# or\nyarn add @electric-sql/pglite-icu-full\n# or\npnpm add @electric-sql/pglite-icu-full\n```\n\n## Usage\n\nThis loads the entire locale set provided by libicu, which might be quite large.\n\n```typescript\nimport { PGlite } from '@electric-sql/pglite'\nimport { icuDataDir } from '@electric-sql/pglite-icu-full'\n\n// Create a PGlite instance with the icu resources\nconst pg = await PGlite.create({\n  icuDataDir: await icuDataDir(),\n})\n\n// just an example, query the available collations\nconst collations = await pg.exec('select * from pg_collation')\n\n```\n\n## Generating an ICU package for PGlite\n\nFollowing is a brief description on how to generate your own icu file that contains only the locales that you want in your PGlite enabled application.\n\n## Download libicu code and data\n\nCurrently PGlite is tested to work with libicu v76.1. Get the source and data for it:\n\nwget https://github.com/unicode-org/icu/releases/download/release-76-1/icu4c-76_1-src.tgz\nwget https://github.com/unicode-org/icu/releases/download/release-78.3/icu4c-78.3-data.zip\n\nImportant: You must have the data sources in order to use the ICU Data Build Tool. Check for the file icu4c/source/data/locales/root.txt. If that file is missing, you need to download “icu4c-*-data.zip”, delete the old icu4c/source/data directory, and replace it with the data directory from the zip file. If there is a *.dat file in icu4c/source/data/in, that file will be used even if you gave ICU custom filter rules.\n\n## Create a filters.json file\n\nThis will allow you to only generate the data that you need.\n\nHere's a simple example:\n```json\n{\n  \"localeFilter\": {\n    \"filterType\": \"locale\",\n    \"includelist\": [\n      \"en_US\"\n    ]\n  }\n}\n```\n\nFor more info, see https://unicode-org.github.io/icu/userguide/icu_data/buildtool.html.\n\n## Build ICU\n\n$ ICU_DATA_FILTER_FILE=<full_path_to_your_filters.json> ./icu/source/configure --with-data-packaging=files --disable-shared --enable-static --disable-tests --disable-samples --disable-extras --disable-icuio --disable-layoutex --prefix=<your_install_dir>\n\n$ make -j && make install\n\n\n## Create an archive with the icu data\n\nThe previous steps have installed everything related to ICU in <your_install_dir>. You only need the data files:\n\n```bash\n$ cd <your_install_dir>/share/icu/76.1/ && tar cvfz icu_76.tgz icudt76l/\n```\n\nNow `icu_76.tgz` contains the localisation data that you can use with PGlite.\n\n```typescript\n// load your newly generate icu archive\nconst icuDataDir = await fs.readFile(\n  resolve(import.meta.dirname, 'icu_76.tgz'),\n)\n// now pass it to PGlite\npg = await PGlite.create({\n  icuDataDir: new Blob([new Uint8Array(icuDataDir)]),\n})\n```\n\n## Example\n\nThe folder `examples/Switzerland` contains the `filter.json` and the generated data file that can be used with PGlite.\n\n# Documentation\n\nhttps://www.postgresql.org/docs/current/locale.html\nhttps://unicode-org.github.io/icu/userguide/icu_data/buildtool.html","readmeFilename":"README.md"}