Current collected state Current
Observed since 20 Oct, 18:55 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
2049-system
2049进制(基于2048个高频中文汉字)
2049进制(基于2048个高频中文汉字)
$ npm i --save 2049-system
/*
*加密解密
*/
import { to2049, toNumber } from "2049-system";
const hello = to2049("1122972")
console.log(hello) // 你好
const deceimalHello = toNumber("你好")
console.log(deceimalHello) // 1122972
const helloHex = to2049("11229c", 16)
console.log(helloHex) // 你好
const hexHello = toNumber("你好", 16)
console.log(hexHello) // 11229c
const helloWorld = to2049("4714687261829")
console.log(helloWorld) // 你好世界
const deceimalHelloWorld = toNumber("你好世界")
console.log(deceimalHelloWorld) // 4714687261829
const helloWorldHex = to2049("449b9426c85", 16)
console.log(helloWorldHex) // 你好世界
const hexHelloWorld = toNumber("你好世界", 16)
console.log(hexHelloWorld) // 449b9426c85
如果你有好点子,想改善这个库,
或者想要一起做点有意思的事
请联系我!
微信:Mid9Rain
小红书:雨叔
抖音:85665398215
知乎:雨叔
B站:雨叔在B站
MIT
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
@types/nodeEnvironment{
"local_name": "@types/node",
"alias": false,
"peer_metadata": null
} | ^18.0.3 | runtime |
bignumber.jsEnvironment{
"local_name": "bignumber.js",
"alias": false,
"peer_metadata": null
} | ^9.1.2 | runtime |
Source distribution
{
"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="
}
]
}Observed since 20 Oct, 18:55 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:08daa0d020b7ac61308767062b305da05c52ad5f5c90aef7ae4c09ad76a4c8a2