An open API service indexing awesome lists of open source software.

https://github.com/lmangani/rison.js

NodeJS Rison Library
https://github.com/lmangani/rison.js

decoder encoder json node nodejs rison

Last synced: about 1 year ago
JSON representation

NodeJS Rison Library

Awesome Lists containing this project

README

          

# 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));
```