{"_id":"2049-system","_rev":"1-a491a7be5321b306c902bacba0f5596e","name":"2049-system","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"2049-system","version":"1.0.0","description":"2049进制(基于2048个高频中文汉字)","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["2048","system","decimal","hexadecimal"],"author":{"name":"Rain"},"license":"MIT","dependencies":{"@types/node":"^18.0.3","bignumber.js":"^9.1.2"},"_id":"2049-system@1.0.0","gitHead":"e2519a8da00ac58f4b25bab14bf720bbbdd1e10c","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Hu5G9U5VrI8KDMlHC7p0ih0rRtnJS7qWjKLrNaILwXzAtx1rxf3UKg0/AbMXNHDkDgZJ9kVzmX4KFfK40LRJQQ==","shasum":"b35cfdaca3da7dc79513c841fa94f5cdfedd8b81","tarball":"https://registry.npmjs.org/2049-system/-/2049-system-1.0.0.tgz","fileCount":10,"unpackedSize":112213,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDXh7+yWOMlBer0gAuQosej/7m6wd4dMRKq7MPd7UD8YAiEA/BEkOuswt3L1Ve9+UsG6sPbuuQen4YyHPM9vpxbLQhc="}]},"_npmUser":{"name":"raincle","email":"yaweihong@icloud.com"},"directories":{},"maintainers":[{"name":"raincle","email":"yaweihong@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2049-system_1.0.0_1701173861673_0.02748417717579632"},"_hasShrinkwrap":false},"1.0.1":{"name":"2049-system","version":"1.0.1","description":"2049进制(基于2048个高频中文汉字)","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["2048","system","decimal","hexadecimal"],"author":{"name":"Rain"},"license":"MIT","dependencies":{"@types/node":"^18.0.3","bignumber.js":"^9.1.2"},"_id":"2049-system@1.0.1","gitHead":"43c8f6e64e2483ec570f66daba850d96da21769a","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-61Eww83FqNm+FvHCQpUQfEx6lTpNdgeyO2UhJMEuU+C3pTGdEUVSybYtZGSk1Skeal1FrIXgETdhQe1dQPj0mg==","shasum":"5a6c8f54ed853aca2b02ac301f7bcc399a268caf","tarball":"https://registry.npmjs.org/2049-system/-/2049-system-1.0.1.tgz","fileCount":10,"unpackedSize":112213,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHdPX5lnGhSMh/fpkE16Yc3qGTR8VVghdGYYkNoEng8OAiEAz8McL6NMClOyDzevn2Gyc4YQkxqUPybaQuDscjvA6hU="}]},"_npmUser":{"name":"raincle","email":"yaweihong@icloud.com"},"directories":{},"maintainers":[{"name":"raincle","email":"yaweihong@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2049-system_1.0.1_1701181354809_0.2317684654290979"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-28T12:17:41.672Z","1.0.0":"2023-11-28T12:17:41.887Z","modified":"2023-11-28T14:22:35.212Z","1.0.1":"2023-11-28T14:22:35.026Z"},"maintainers":[{"name":"raincle","email":"yaweihong@icloud.com"}],"description":"2049进制(基于2048个高频中文汉字)","keywords":["2048","system","decimal","hexadecimal"],"author":{"name":"Rain"},"license":"MIT","readme":"# 2049-system\n2049进制(基于2048个高频中文汉字)\n\n## Motivation\n1. 由于6764进制中使用的汉字对大部分人来说仍有些不易认读的汉字，因此优化2049进制版本。\n2. 市面上常用的进制转换，基于英文字母，例如16进制、26进制、52进制、62进制，都限制于数字和字母大小写的个数。\n3. 因此，作者决定开发基于字频的中文2049进制，缩短密文长度，提高密文可读性，使密文能够仅在脑中存储。\n\n## Features\n\n1. 2049进制便于记忆大数、缩短密文等\n2. 将10进制、16进制转换为2049进制\n3. 将2049进制，转换为10进制、16进制\n\n## Installation\n```sh\n$ npm i --save 2049-system\n```\n\n## Common Usage\n```js\n/*\n *加密解密\n */\nimport { to2049, toNumber } from \"2049-system\";\n\nconst hello = to2049(\"1122972\")\nconsole.log(hello) // 你好\nconst deceimalHello = toNumber(\"你好\")\nconsole.log(deceimalHello) // 1122972\n\nconst helloHex = to2049(\"11229c\", 16)\nconsole.log(helloHex) // 你好\nconst hexHello = toNumber(\"你好\", 16)\nconsole.log(hexHello) // 11229c\n\nconst helloWorld = to2049(\"4714687261829\")\nconsole.log(helloWorld) // 你好世界\nconst deceimalHelloWorld = toNumber(\"你好世界\")\nconsole.log(deceimalHelloWorld) // 4714687261829\n\nconst helloWorldHex = to2049(\"449b9426c85\", 16)\nconsole.log(helloWorldHex) // 你好世界\nconst hexHelloWorld = toNumber(\"你好世界\", 16)\nconsole.log(hexHelloWorld) // 449b9426c85\n\n```\n\n\n## Advanced Usage\n\n## Contact\n如果你有好点子，想改善这个库，  \n或者想要一起做点有意思的事  \n请联系我！\n- - -\n微信：Mid9Rain  \n小红书：雨叔  \n抖音：85665398215\n- - -\n知乎：雨叔  \nB站：雨叔在B站  \n\n## License\nMIT\n","readmeFilename":"README.md"}