https://github.com/jlchntoz/baseiching
A base64-like encoding method but it uses hexagrams in I Ching.
https://github.com/jlchntoz/baseiching
base64 javascript
Last synced: over 1 year ago
JSON representation
A base64-like encoding method but it uses hexagrams in I Ching.
- Host: GitHub
- URL: https://github.com/jlchntoz/baseiching
- Owner: JLChnToZ
- License: mit
- Created: 2016-04-12T16:43:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-12T17:14:25.000Z (over 10 years ago)
- Last Synced: 2025-03-13T06:07:11.636Z (over 1 year ago)
- Topics: base64, javascript
- Language: JavaScript
- Homepage: https://code.moka-rin.moe/baseiching/
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Base易經
--------
A base64-like encoding method but it uses [hexagrams in I Ching](https://en.wikipedia.org/wiki/Hexagram_(I_Ching)).
## How to Install
In node.js:
```sh
npm install baseiching
```
, then
```javascript
var baseiching = require('basaeiching');
```
Or in browsers:
```html
```
## How to Use
```javascript
baseiching.encode(source, [compress]);
```
Convert string / array or bytes / array buffer into base易經
parameters:
- source:string / array / array buffer, the source
- compress:boolean, compressed output?
returns:
- string, converted base易經 data.
```javascript
baseiching.decode(source, [tostring]);
```
Convert the base易經 back to string / array of bytes
parameters:
- source:string, the base易經 encoded data
- tostring:boolean, should convert the result into string?
returns:
- string / array of bytes, raw data.
```javascript
baseiching.setLang(lang);
```
Set the language varient
parameters:
- lang:string, which varient should be used? Possible values are 'cht' (Traditional Chinese), 'chs' (Simplified Chinese) and 'ja' (Japanese).
## License
[MIT](LICENSE)