2.2.0 ā€¢ Published 2 years ago

jason-formatter v2.2.0

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

Jason Formatter

codecov deno doc

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

Video Showcase šŸ“·

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 šŸ“„

2.2.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.0.1

3 years ago