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
- Host: GitHub
- URL: https://github.com/lmangani/rison.js
- Owner: lmangani
- License: mit
- Created: 2017-12-15T14:54:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-16T10:51:56.000Z (about 2 years ago)
- Last Synced: 2024-10-05T13:22:08.551Z (over 1 year ago)
- Topics: decoder, encoder, json, node, nodejs, rison
- Language: JavaScript
- Size: 62.5 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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));
```