Coder Social home page Coder Social logo

ultirequiem / jason-formatter Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 3.0 124 KB

:memo: Shell utility and Library for formatting JSON files

Home Page: https://jason.js.org

License: MIT License

TypeScript 100.00%
formatter json json-formatter cli cli-formatter nodejs npm-package typescript node javascript

jason-formatter's Introduction

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

jason-formatter's People

Contributors

ultirequiem avatar web-flow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jason-formatter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.