npm.io
2.0.1 • Published 1 year ago

inison

Licence
MIT
Version
2.0.1
Deps
0
Size
10 kB
Vulns
0
Weekly
0

Inison banner

Inison

npmjs License Activity GitHub stars

An alternative to JSON, aiming to reduce disk usage by storing decoded data and eliminating double-quotes

Features

  • Lightweight
  • Minimalist (but powerful)
  • TypeScript
  • Super-Fast
  • Suitable for large data
  • Support Compression
  • Safe
  • Easy to use
  • ... and much more

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

License

MIT

Keywords