Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

UltiRequiem/jason-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

72 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 πŸ“„

About

πŸ“ Shell utility and Library for formatting JSON files

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

Contributors 2

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /