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