inison
v1.0.0-rc.4
Published
An alternative to JSON, aiming to reduce disk usage by storing decoded data and eliminating double-quotes
Downloads
138
Maintainers
Readme
Inison :pencil:
An alternative to JSON, aiming to reduce disk usage by storing decoded data and eliminating double-quotes :fire:
Features
- Lightweight 🪶
- Minimalist :white_circle: (but powerful)
- TypeScript :large_blue_diamond:
- Super-Fast :zap:
- Suitable for large data :page_with_curl:
- Support Compression :eight_spoked_asterisk:
- Safe :lock:
- Easy to use :bread:
- ... and much more :rocket:
Usage
import Inison from "inison";
const myObj = {
name: "Jo,hn",
age: 21,
city: "New York",
hobbies: ["Reading", "Tra[veling", ["test", "test2", { test: true }]],
};
// Stringify the object
const stringifiedObj = Inison.stringify(myObj);
// {name:Jo\,hn,age:21,city:New York,hobbies:[Reading,Tra\veking,[test,test2,{test:true}]]}
// Unstringify the stringified object
const unstringifiedObj = Inison.unstringify(stringifiedObj);
If you like Inison, please sponsor: GitHub Sponsors || Paypal.
Install
<npm|pnpm|yarn> install inison