rison.js

1.0.1 • Public • Published

rison.js

NodeJS Rison Library with no dependencies

Usage

Import

import { encode,decode } from 'rison.js'
Encode JSON to Rison
var json = { "ami" : "correct", "array": ["one"] };
console.log( encode(json));
Decode Rison to JSON
var rison = '(ami:correct,array:!(one))'
console.log( decode(rison));

Readme

Keywords

Package Sidebar

Install

npm i rison.js

Weekly Downloads

94

Version

1.0.1

License

MIT

Unpacked Size

16.5 kB

Total Files

6

Last publish

Collaborators

  • lmangani