Current collected state Current
Observed since 20 Oct, 18:55 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
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.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:55 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:03f8105e92ab82716c4d8a0dc75f921eec0fea12c71beb2e15ea3c7338eaae94