jason-formatter
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -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). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
24
252
59
0
35925
2