A simple JSON formatter.
- Deno π
deno install --unstable --allow-read --allow-write https://deno.land/x/jason_formatter/jason.ts
- Node.js πΌ
npm install --global jason-formatter
jason config.json
By default, 2 tabs are used, to specify how many tabs you want π
jason config.json --tabs 4 # same as -t 4The API is the same on all this platforms βοΈ
import { jason } from "https://deno.land/x/jason_formatter/mod.ts"; const data = `{"nick":9}`; jason(data); /* { "nick": 9 }*/
import { jason } from "jason-formatter";
You can use any CDN π₯
Eg π
ESM
Is hosted on Deno Doc π
I did this while learning TypeScript long time ago, It was originally written for Node.js but I'm porting most of my packages to Deno.
It's basically a wrapper around JSON.stringify π
Open an Issue, I will check it a soon as possible π
If you want to hurry me up a bit send me a tweet π
Consider supporting me on Patreon if you like my work π
Don't forget to star the repo β
We use Semantic Versioning. For the versions available, see the tags π·οΈ
Licensed under the MIT License π