0.1.3 • Published 3 months ago

js-gua64 v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

六十四卦編碼

六十四卦編碼,js實現

如:“hello,世界”會編碼為“䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇”

js-gua64

npm

demo

npm.io

各語言實現

引用

node

npm i js-gua64

browser

<script type="module">
    import {decode, encode, verify} from 'https://raw.githubusercontent.com/lizongying/js-gua64/refs/heads/main/docs/gua64.min.js';
</script>

使用方法

docs

需要在package.json文件中設置"type": "module"

import {decode, encode, verify} from 'js-gua64';

let r = decode('䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇');
console.log(r);

r = encode('hello,世界');
console.log(r);

r = verify('䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇');
console.log(r);

讚賞

image

0.1.2

4 months ago

0.1.3

3 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.6

1 year ago

0.0.2

4 years ago

0.0.1

4 years ago