2.2.0 ā¢ Published 2 years ago
jason-formatter v2.2.0
Jason Formatter
A simple JSON formatter.
CLI
Install
- Deno š
deno install --unstable --allow-read --allow-write https://deno.land/x/jason_formatter/jason.ts
- Node.js š¼
npm install --global jason-formatter
Usage
jason config.json
By default, 2 tabs are used, to specify how many tabs you want š
jason config.json --tabs 4 # same as -t 4
Usage
The API is the same on all this platforms āļø
Deno š¦
import { jason } from "https://deno.land/x/jason_formatter/mod.ts";
const data = `{"nick":9}`;
jason(data); /* {
"nick": 9
}*/
Node.js š¢š
import { jason } from "jason-formatter";
Browser š
You can use any CDN š„
Eg š ESM āļø SkyPack š Script Tag āļø JSDelivr
Documentation
Is hosted on Deno Doc š
Note
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 š
Support
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 start the repo ā
Versioning
We use Semantic Versioning. For the versions available, see the tags š·ļø
Licence
Licensed under the MIT License š