obj-tz
v6.2.1
Published
**1. Install** ###### npm ```shell npm install obj-tz ``` ###### yarn ```shell yarn add obj-tz ```
Readme
Quickstart
1. Install
npm
npm install obj-tzyarn
yarn add obj-tz2. Create a obj-tz (ES6 module syntax)
import objtz from 'obj-tz';
objtz.encode({a:1}); // ⇨ 'YjE4MTU5ZGRlZWU3YWQyNDVmYjBhMmUxOTIwYWJkZTk0Y2IxNWExMjp7ImEiOjF9'... or using CommonJS syntax:
const objtz = require('obj-tz');
objtz.encode({a:1}); // ⇨ 'YjE4MTU5ZGRlZWU3YWQyNDVmYjBhMmUxOTIwYWJkZTk0Y2IxNWExMjp7ImEiOjF9'Other options read on ...
API Summary
| | | |
| --- | --- | --- |
| objtz.encode() | Encode object| New in [email protected] |
| objtz.decode() | Decode object | New in [email protected] |
License
See the LICENSE file for licensing information.
