๐ A light codec implemented in JavaScript, aimed for both browser and node.js
It encode a primitive type to a string, whose length is seven.
npm install @changyan/codec
Node,js:
const codec = require('@changyan/codec');
ES6:
import codec from '@changyan/codec';
In your code, try it out like this:
let key = codec.encode('Hello world'); // 'LLvEUum'
let src = codec.decode(key); // 'Hello world'