2.0.1 ā€¢ Published 2 years ago

@ultirequiem/jason-formatter v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Jason Formatter

CI codecov deno doc

Custom badge Custom badge Custom badge

A simple JSON formatter.

CLI

Install

deno install --allow-read --allow-write https://deno.land/x/jason_formatter/jason.ts
npm install --global jason-formatter

Usage

jason config.json

By default, 2 tabs are used, but you can also specify how many tabs you want šŸ‘‡

jason config.json --tabs 4 # same as -t 4

Usage

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

Using type module šŸ±

Using a plain script tag šŸ‘‡

You have the same API on all of this platforms.

Documentation

Autogenerated Documentation šŸ˜Ž

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 ā­

Licence

Licensed under the MIT License.