{"_id":"@angadie/chittie-codepage","_rev":"7-505a3e1e0e2793eefde9bd13cc70e760","name":"@angadie/chittie-codepage","dist-tags":{"latest":"0.5.1"},"versions":{"0.1.0":{"name":"@angadie/chittie-codepage","version":"0.1.0","license":"MIT","_id":"@angadie/chittie-codepage@0.1.0","maintainers":[{"name":"octalpixel","email":"mithushancj@gmail.com"}],"dist":{"shasum":"c8db89598f2e054d699365bebad33a7521af4a6f","tarball":"https://registry.npmjs.org/@angadie/chittie-codepage/-/chittie-codepage-0.1.0.tgz","fileCount":10,"integrity":"sha512-4NIZXmcYhOx8JK4vFgAcyXKkVqc6UQwTErEW4kuLn9yN8vWvL72wJW6wAJ0zrgO4iZO5KCdNtixjEXNSo/R57g==","signatures":[{"sig":"MEYCIQD740T79ua0DEZlv4JBFYZ6gFBdQB8ghfRnM9eZHzk1fQIhAJxa8mq1C/0maZTNroKHy4dyfZ7NvrYnkLl9DCkU1bk7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45253},"type":"module","_from":"file:angadie-chittie-codepage-0.1.0.tgz","types":"./types/index.d.ts","exports":{".":{"types":"./types/index.d.ts","import":"./src/index.js"}},"scripts":{"test":"node spikes/encode.spike.mjs","build":"echo 'chittie-codepage ships ESM source (no build step)'","typecheck":"echo 'no typecheck (vendored JS + shipped .d.ts)'"},"_npmUser":{"name":"octalpixel","email":"mithushancj@gmail.com"},"_resolved":"/private/var/folders/j5/7dkmn95d0_9b5fdnfsmpjs580000gn/T/0bf223610c2d8f210dbf6649bbbe8c89/angadie-chittie-codepage-0.1.0.tgz","_integrity":"sha512-4NIZXmcYhOx8JK4vFgAcyXKkVqc6UQwTErEW4kuLn9yN8vWvL72wJW6wAJ0zrgO4iZO5KCdNtixjEXNSo/R57g==","_npmVersion":"10.9.7","description":"Zero-dependency code-page encoder for thermal printers (vendored from @point-of-sale/codepage-encoder, MIT).","directories":{},"_nodeVersion":"22.22.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/chittie-codepage_0.1.0_1782189712977_0.8731561830173069","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@angadie/chittie-codepage","version":"0.1.1","license":"MIT","_id":"@angadie/chittie-codepage@0.1.1","maintainers":[{"name":"octalpixel","email":"mithushancj@gmail.com"}],"dist":{"shasum":"99dbfd98a47d8f5d65e49aa38f041e98335af5aa","tarball":"https://registry.npmjs.org/@angadie/chittie-codepage/-/chittie-codepage-0.1.1.tgz","fileCount":10,"integrity":"sha512-UxycGzYZhh9cqcDNVAeZVu3Sy8gtdwWRGzsbuxd9Zvc+IHJdd80Ja7TBg7k1IrpNc9FosUFTfk12wlH6lBkdsQ==","signatures":[{"sig":"MEUCIBoJYfYEEwY0wzeH0oKkqQGsOsKMdKbX+YMfxXE2CkXyAiEAyMKURCRvoFZuVAs/52EodrEDsoXEwG/qqc4XFX5eQgU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45253},"type":"module","_from":"file:angadie-chittie-codepage-0.1.1.tgz","types":"./types/index.d.ts","exports":{".":{"types":"./types/index.d.ts","import":"./src/index.js"}},"scripts":{"test":"node spikes/encode.spike.mjs","build":"echo 'chittie-codepage ships ESM source (no build step)'","typecheck":"echo 'no typecheck (vendored JS + shipped .d.ts)'"},"_npmUser":{"name":"octalpixel","email":"mithushancj@gmail.com"},"_resolved":"/private/var/folders/j5/7dkmn95d0_9b5fdnfsmpjs580000gn/T/aa02fd3d6fe90558c0828e93fe19307e/angadie-chittie-codepage-0.1.1.tgz","_integrity":"sha512-UxycGzYZhh9cqcDNVAeZVu3Sy8gtdwWRGzsbuxd9Zvc+IHJdd80Ja7TBg7k1IrpNc9FosUFTfk12wlH6lBkdsQ==","_npmVersion":"10.9.7","description":"Zero-dependency code-page encoder for thermal printers (vendored from @point-of-sale/codepage-encoder, MIT).","directories":{},"_nodeVersion":"22.22.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/chittie-codepage_0.1.1_1782190359626_0.41978804495099853","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@angadie/chittie-codepage","version":"0.2.0","license":"MIT","_id":"@angadie/chittie-codepage@0.2.0","maintainers":[{"name":"octalpixel","email":"mithushancj@gmail.com"}],"dist":{"shasum":"98a28fe761973fb0cec346c8ac8fd7cde9619e94","tarball":"https://registry.npmjs.org/@angadie/chittie-codepage/-/chittie-codepage-0.2.0.tgz","fileCount":10,"integrity":"sha512-b6AUJcsE6OUF3IwD3Z+62UBU5W/SYhPtqX6OrYkqqHgrLBviaehsj8X7wz7WKUT+Uxkl0M0DrrI5r5+T9z75Gg==","signatures":[{"sig":"MEUCIG7TDUI53z5FOI0yxENk10BWUuGAV+UNZqXF6p/kYBcYAiEAq6Gy1UaEXSbT7h+d0W/75PZYOoLJYk2ARJaf740XQ+c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45253},"type":"module","_from":"file:angadie-chittie-codepage-0.2.0.tgz","types":"./types/index.d.ts","exports":{".":{"types":"./types/index.d.ts","import":"./src/index.js"}},"scripts":{"test":"node spikes/encode.spike.mjs","build":"echo 'chittie-codepage ships ESM source (no build step)'","typecheck":"echo 'no typecheck (vendored JS + shipped .d.ts)'"},"_npmUser":{"name":"octalpixel","email":"mithushancj@gmail.com"},"_resolved":"/private/var/folders/j5/7dkmn95d0_9b5fdnfsmpjs580000gn/T/74cd262944182f810dbe1ed32daf4469/angadie-chittie-codepage-0.2.0.tgz","_integrity":"sha512-b6AUJcsE6OUF3IwD3Z+62UBU5W/SYhPtqX6OrYkqqHgrLBviaehsj8X7wz7WKUT+Uxkl0M0DrrI5r5+T9z75Gg==","_npmVersion":"10.9.7","description":"Zero-dependency code-page encoder for thermal printers (vendored from @point-of-sale/codepage-encoder, MIT).","directories":{},"_nodeVersion":"22.22.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/chittie-codepage_0.2.0_1782192871887_0.8403904715040325","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@angadie/chittie-codepage","version":"0.3.0","license":"MIT","_id":"@angadie/chittie-codepage@0.3.0","maintainers":[{"name":"octalpixel","email":"mithushancj@gmail.com"}],"dist":{"shasum":"0d25ef25797d37eea2a5b937459f3d1afc8f6783","tarball":"https://registry.npmjs.org/@angadie/chittie-codepage/-/chittie-codepage-0.3.0.tgz","fileCount":10,"integrity":"sha512-cd7JuCJtQH/NvMCRVse+jIhvXAKGmBt1Wtewh7Hsp3DV/onJktqkGzGe3bZ2ohTae+0fEGwZpHgpoO46o/34LQ==","signatures":[{"sig":"MEUCIFkCGzuAjubmDDu7XJ6+0zO8CD8/6eZt31SLxjTXCX9eAiEAo78IlfdHJIwrIbKq1iXx9M0x9dT8RWT2EnpYuoqjg1A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45253},"type":"module","_from":"file:angadie-chittie-codepage-0.3.0.tgz","types":"./types/index.d.ts","exports":{".":{"types":"./types/index.d.ts","import":"./src/index.js"}},"scripts":{"test":"node spikes/encode.spike.mjs","build":"echo 'chittie-codepage ships ESM source (no build step)'","typecheck":"echo 'no typecheck (vendored JS + shipped .d.ts)'"},"_npmUser":{"name":"octalpixel","email":"mithushancj@gmail.com"},"_resolved":"/private/var/folders/j5/7dkmn95d0_9b5fdnfsmpjs580000gn/T/291e29cd56f8b09f31aafbcff18e5f91/angadie-chittie-codepage-0.3.0.tgz","_integrity":"sha512-cd7JuCJtQH/NvMCRVse+jIhvXAKGmBt1Wtewh7Hsp3DV/onJktqkGzGe3bZ2ohTae+0fEGwZpHgpoO46o/34LQ==","_npmVersion":"10.9.7","description":"Zero-dependency code-page encoder for thermal printers (vendored from @point-of-sale/codepage-encoder, MIT).","directories":{},"_nodeVersion":"22.22.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/chittie-codepage_0.3.0_1782238387927_0.9297224575261442","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@angadie/chittie-codepage","version":"0.4.0","license":"MIT","_id":"@angadie/chittie-codepage@0.4.0","maintainers":[{"name":"octalpixel","email":"mithushancj@gmail.com"}],"dist":{"shasum":"f0e86d04b8eee480215b108059056a0059a2e37c","tarball":"https://registry.npmjs.org/@angadie/chittie-codepage/-/chittie-codepage-0.4.0.tgz","fileCount":10,"integrity":"sha512-Now7VjS00Ujl/4XpcoRpAmOKHR0RrAm5TWBTqpZNt1ibl9sXiIuMeqz80MAhyI3uLi+ZNg0xr+PSOUlYKZ8xmQ==","signatures":[{"sig":"MEYCIQDYy7G9fO92fMNs/7SZmhdno/60PFC1F35+TXZfISShjQIhAPk+3JFjLS6h+kWiyfcFqoBGvc0zsQ7eHA9p/7YKwnqM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45253},"type":"module","_from":"file:angadie-chittie-codepage-0.4.0.tgz","types":"./types/index.d.ts","exports":{".":{"types":"./types/index.d.ts","import":"./src/index.js"}},"scripts":{"test":"node spikes/encode.spike.mjs","build":"echo 'chittie-codepage ships ESM source (no build step)'","typecheck":"echo 'no typecheck (vendored JS + shipped .d.ts)'"},"_npmUser":{"name":"octalpixel","email":"mithushancj@gmail.com"},"_resolved":"/private/var/folders/j5/7dkmn95d0_9b5fdnfsmpjs580000gn/T/47fe27db833222c37fa8367249c38f22/angadie-chittie-codepage-0.4.0.tgz","_integrity":"sha512-Now7VjS00Ujl/4XpcoRpAmOKHR0RrAm5TWBTqpZNt1ibl9sXiIuMeqz80MAhyI3uLi+ZNg0xr+PSOUlYKZ8xmQ==","_npmVersion":"10.9.7","description":"Zero-dependency code-page encoder for thermal printers (vendored from @point-of-sale/codepage-encoder, MIT).","directories":{},"_nodeVersion":"22.22.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/chittie-codepage_0.4.0_1782239443853_0.1536195545606498","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@angadie/chittie-codepage","version":"0.5.0","license":"MIT","_id":"@angadie/chittie-codepage@0.5.0","maintainers":[{"name":"octalpixel","email":"mithushancj@gmail.com"}],"dist":{"shasum":"9c8f5e249ec1d216bffbdfb1aaf60da9a1eeacb0","tarball":"https://registry.npmjs.org/@angadie/chittie-codepage/-/chittie-codepage-0.5.0.tgz","fileCount":10,"integrity":"sha512-RbD6NpfuRHaYP5S0UJvtDLV9Euq+Q7j5Oc/e9FuQEcXhbzReYXEWsSGkqHSEsRb4NykSflpJ1z7ECf+dwGL/lA==","signatures":[{"sig":"MEYCIQDdzagmIp4YC36C21R3DF6o+LovrLwUhjR6inWpEauOOAIhALWT4j44WW+vze6IBWLa0brSuTs0eZzDVBvNriEEyRo3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45253},"type":"module","_from":"file:angadie-chittie-codepage-0.5.0.tgz","types":"./types/index.d.ts","exports":{".":{"types":"./types/index.d.ts","import":"./src/index.js"}},"scripts":{"test":"node spikes/encode.spike.mjs","build":"echo 'chittie-codepage ships ESM source (no build step)'","typecheck":"echo 'no typecheck (vendored JS + shipped .d.ts)'"},"_npmUser":{"name":"octalpixel","email":"mithushancj@gmail.com"},"_resolved":"/private/var/folders/j5/7dkmn95d0_9b5fdnfsmpjs580000gn/T/34f46e94811004b53e6726aad6a4879b/angadie-chittie-codepage-0.5.0.tgz","_integrity":"sha512-RbD6NpfuRHaYP5S0UJvtDLV9Euq+Q7j5Oc/e9FuQEcXhbzReYXEWsSGkqHSEsRb4NykSflpJ1z7ECf+dwGL/lA==","_npmVersion":"10.9.7","description":"Zero-dependency code-page encoder for thermal printers (vendored from @point-of-sale/codepage-encoder, MIT).","directories":{},"_nodeVersion":"22.22.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/chittie-codepage_0.5.0_1782240864432_0.1619945099567095","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@angadie/chittie-codepage","version":"0.5.1","description":"Zero-dependency code-page encoder for thermal printers (vendored from @point-of-sale/codepage-encoder, MIT).","license":"MIT","type":"module","types":"./types/index.d.ts","exports":{".":{"types":"./types/index.d.ts","import":"./src/index.js","default":"./src/index.js"}},"publishConfig":{"access":"public"},"scripts":{"build":"echo 'chittie-codepage ships ESM source (no build step)'","typecheck":"echo 'no typecheck (vendored JS + shipped .d.ts)'","test":"node spikes/encode.spike.mjs"},"_id":"@angadie/chittie-codepage@0.5.1","_integrity":"sha512-E2QGNq4pUsPM35OsM7TGX2bwVnPrvAq+mN1P36HoD+Pri2CBmPW4X0u/vpPVoqXCVUAAMTuHQpTbAcpcCNDjRw==","_resolved":"/private/var/folders/j5/7dkmn95d0_9b5fdnfsmpjs580000gn/T/bf020ab5582baa35b0dfe7c0932f7b8f/angadie-chittie-codepage-0.5.1.tgz","_from":"file:angadie-chittie-codepage-0.5.1.tgz","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-E2QGNq4pUsPM35OsM7TGX2bwVnPrvAq+mN1P36HoD+Pri2CBmPW4X0u/vpPVoqXCVUAAMTuHQpTbAcpcCNDjRw==","shasum":"f918124360049a7f014c123b6398ba8d4c8dbf81","tarball":"https://registry.npmjs.org/@angadie/chittie-codepage/-/chittie-codepage-0.5.1.tgz","fileCount":10,"unpackedSize":45288,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC9UEbg3Fzw5KRppy7VDjU/4h1C7e09Ai71bKt1we6qCwIgKwLPadRWYK0wMN5Ipgia69LHo9fzl/1MhsWOEA31pgo="}]},"_npmUser":{"name":"octalpixel","email":"mithushancj@gmail.com"},"directories":{},"maintainers":[{"name":"octalpixel","email":"mithushancj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chittie-codepage_0.5.1_1782462998242_0.9115630630412128"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-23T04:41:52.764Z","modified":"2026-06-26T08:36:38.509Z","0.1.0":"2026-06-23T04:41:53.172Z","0.1.1":"2026-06-23T04:52:39.879Z","0.2.0":"2026-06-23T05:34:32.023Z","0.3.0":"2026-06-23T18:13:08.101Z","0.4.0":"2026-06-23T18:30:43.997Z","0.5.0":"2026-06-23T18:54:24.631Z","0.5.1":"2026-06-26T08:36:38.400Z"},"license":"MIT","description":"Zero-dependency code-page encoder for thermal printers (vendored from @point-of-sale/codepage-encoder, MIT).","maintainers":[{"name":"octalpixel","email":"mithushancj@gmail.com"}],"readme":"# @angadie/chittie-codepage\n\nZero-dependency, Buffer-free code-page encoder — maps strings to printer byte values across 76 code pages (cp437, cp858, windows-1252, …). The low-level text-encoding layer under [`@angadie/chittie-core`](../chittie-core).\n\n> **Vendored** from [`NielsLeenheer/CodepageEncoder`](https://github.com/NielsLeenheer/CodepageEncoder) @ `08e53e4` (MIT). Ships ESM source directly (no build step). See [`VENDOR.md`](../../VENDOR.md). You rarely use this directly — it's a building block.\n\n## Install\n\n```bash\npnpm add @angadie/chittie-codepage\n```\n\n## Usage\n\n```ts\nimport CodepageEncoder from '@angadie/chittie-codepage';\n\nCodepageEncoder.encode('Hello', 'cp437');  // Uint8Array [48 65 6c 6c 6f]\nCodepageEncoder.encode('é', 'cp858');      // Uint8Array [82]\nCodepageEncoder.getEncodings();            // Codepage[] — all 76\nCodepageEncoder.supports('cp858');         // boolean\n```\n\nCharacters absent from the target code page encode to `0x3f` (`?`). Sinhala, Tamil, and other complex scripts have **no** code page here — detect that with [`@angadie/chittie-text`](../chittie-text) and rasterize instead.\n\n## License\n\nMIT — retains the upstream copyright (see `LICENSE`).\n","readmeFilename":"README.md"}