Skip to content

UltiRequiem/jason-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jason Formatter

Code Coverage 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 ✔️

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 ↔️ 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 star the repo ⭐

Versioning

We use Semantic Versioning. For the versions available, see the tags 🏷️

Licence

Licensed under the MIT License 📄