An alternative to JSON, aiming to reduce disk usage by storing decoded data and eliminating double-quotes π₯
- Lightweight πͺΆ
- Minimalist βͺ (but powerful)
- TypeScript π·
- Super-Fast β‘
- Suitable for large data π
- Support Compression β³οΈ
- Safe π
- Easy to use π
- ... and much more π
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.
<npm|pnpm|yarn> install inison