{"_id":"@ambertide/basehieroglyph","name":"@ambertide/basehieroglyph","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ambertide/basehieroglyph","version":"1.0.0","description":"Base1024 Text Encoder with Hieroglyphs","main":"dist/index.js","keywords":[],"author":"Ege özkan","license":"GPL-3.0-only","devEngines":{"packageManager":{"name":"pnpm","version":"^11.9.0","onFail":"download"}},"type":"module","devDependencies":{"@eslint/js":"^10.0.1","@jest/globals":"^30.4.1","@stylistic/eslint-plugin":"^5.10.0","@types/jest":"^29.5.14","eslint":"^10.8.0","eslint-plugin-license-header":"^0.9.0","globals":"^17.7.0","jest":"^30.4.1","jiti":"^2.7.0","ts-jest":"^29.4.12","ts-node":"^10.9.2","typescript":"^6.0.3","typescript-eslint":"^8.65.0"},"scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","build":"tsc","lint":"eslint"},"_nodeVersion":"22.23.0","_id":"@ambertide/basehieroglyph@1.0.0","dist":{"integrity":"sha512-MB53hxQVinVZW7cCcwfcjoO2Z87VN4H5x+tYNAkhTFffs+TIj3WDvEy6ZSlANRVr71jrpKi5lCeUlMVQrjIb0w==","shasum":"b0ec087ad63cb7a9040bc368d92b346a68284b73","tarball":"https://registry.npmjs.org/@ambertide/basehieroglyph/-/basehieroglyph-1.0.0.tgz","fileCount":63,"unpackedSize":82990,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCNlx08+9WciRI6kcv2f2Lp1PjarF4+cXTBdCsyzLMEqgIgcQF9FndI2bbe+nFcStTO2X9SZO6qwwM6nXwYJIRL3S0="}]},"_npmUser":{"name":"ambertide","email":"egeemirozkan24@gmail.com"},"directories":{},"maintainers":[{"name":"ambertide","email":"egeemirozkan24@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/basehieroglyph_1.0.0_1785697690626_0.16389419387766746"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-02T19:08:10.445Z","1.0.0":"2026-08-02T19:08:10.793Z","modified":"2026-08-02T19:08:10.994Z"},"maintainers":[{"name":"ambertide","email":"egeemirozkan24@gmail.com"}],"description":"Base1024 Text Encoder with Hieroglyphs","keywords":[],"author":"Ege özkan","license":"GPL-3.0-only","readme":"# `@ambertide/basehieroglyph`\n\nA Base1024 text encoding library... with hieroglyphs!\n\n## Testimonials\n\n> 𓂋𓐍𓏜𓆑𓋴𓐍𓂋𓏜𓇋𓋴𓊪𓅱𓄤𓆑𓂋 👍\n> - 𓁗𓃔\n\n> Man this shit ain't valid hieroglyphics\n> - Jean-François Champollion\n\n## What??\n\nEver wanted to encode arbitirary text strings in Egyptian Hieroglyphics?\nAND it probably[^1] handles Unicode? Seek no more friend! With this Base1024\nUnicode to Egyptian Hieroglyphics encoder/decoder library you too can convert\nand deconvert your arbitirary text into hierostrings, in a safe[^2], fast[^3]\nand memory efficent[^4] manner.\n\n[^1]: I am pretty sure this works most of the time, 90% of the time but, like, don't depend on this on production lol.\n[^2]: It has tests and stuff.\n[^3]: Okay, look, Javascript really wants to work with bytes so I go through a *few* loops to convert from uint8 to uint10 to hieroglyphics so it is probably slow as f u c k, but does it matter? at the grand scheme of things aren't we all brothers and sisters? aren't we all living under the same sun?\n[^4]: This will crash on big payloads 🙏\n\n## Frequently Asked Questions\n\n### This doesn't translate actual sentences, right?\n\nNo, it simply encodes your text, just like Base64, but rather than\ntaking 6-bits and encoding to 64 values, it takes 10 bits and encodes\nto 1024... hieroglyphs, a hierostring, if you will.\n\n### You wrote this with AI, right? You haven't spent actual...\n\n...Time on this? You bet I did! I am perfectly capable of producing slop on my\nown.\n\n### But... this has tests and... YOU SPENT ACTUAL FREE TIME FOR THIS?\n\nOh yes, I am actually quite proud of the way conversion works, essentially:\n\n```mermaid\nstateDiagram-v2\n    direction LR\n    [*] --> string\n    string --> u8[]\n    u8[] --> u40[]\n    u40[] --> u10[]\n    u10[] --> 𓆍𓈗𓄀𓀀\n    𓆍𓈗𓄀𓀀 --> [*]\n```\n\nFor encoding, and reverse for decoding, and you pad and then de-pad\non u40[] conversions.\n\n### But I thought Javascript didn't have uint40 and uint10?\n\nIt doesn't, I manually convert them.\n\n### Jesus Christ...\n\nYeah...\n\n### What even is the use case man?\n\nThis has so many valid use cases that it would be a waste of time\nto list all of them.\n","readmeFilename":"","_rev":"1-d17ae9d4b09ffaad3eea87351389e138"}