Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jason-formatter

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jason-formatter - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

build/cli.d.ts

2

build/src/jason.js

@@ -7,3 +7,3 @@ #!/usr/bin/env node

Object.defineProperty(exports, "__esModule", { value: true });
const cli_1 = __importDefault(require("../src/cli"));
const cli_1 = __importDefault(require("./cli"));
(0, cli_1.default)();
{
"name": "jason-formatter",
"version": "1.4.0",
"version": "1.4.1",
"description": "A Command Line tool to format JSON",
"main": "./build/src/index.js",
"types": "./build/index.d.ts",
"repository": {

@@ -7,0 +8,0 @@ "type": "git",

@@ -9,3 +9,3 @@ # Jason

A Command Line formatter for JSON files, zero dependencies.
A simple [json](https://json.org) formmater.

@@ -42,10 +42,19 @@ ![Cover](./assets/cover.png)

You can also import it in your code:
Jason is also a library, so you can also import it in your code.
Example using CommonJS:
```javascript
const format = require('jason-formatter')
const jason = require('jason-formatter').default
console.log(format(rawData, { tabs: 2 }))
const rawData = `
{
"hey":9 ,
"jason":true
}
`
console.log(jason(rawData, { tabs: 2 }))
```
You can see an example of use in [test/formatter.js](./tests/formater.js).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc