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.3.0 to 1.4.0

build/bin/jason.js

28

.eslintrc.js

@@ -8,4 +8,14 @@ module.exports = {

},
ignorePatterns: ['node_modules'],
extends: ['airbnb-base', 'prettier', 'eslint:recommended'],
ignorePatterns: ['node_modules', 'build'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'airbnb-base',
'prettier',
'eslint:recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended'
],
parserOptions: {

@@ -17,7 +27,11 @@ ecmaVersion: 2021,

quotes: ['warn', 'single', 'avoid-escape'],
'no-plusplus': 'off',
'on-var': 'off',
'max-classes-per-file': 'off',
'no-console': 'off'
'no-console': 'off',
'import/extensions': [
'error',
'ignorePackages',
{
ts: 'never'
}
]
}
};
}
{
"name": "jason-formatter",
"version": "1.3.0",
"version": "1.4.0",
"description": "A Command Line tool to format JSON",
"main": "src/index.js",
"main": "./build/src/index.js",
"repository": {

@@ -15,3 +15,3 @@ "type": "git",

"bin": {
"jason": "src/cli.js"
"jason": "./build/src/jason.js"
},

@@ -32,2 +32,6 @@ "keywords": [

"devDependencies": {
"@types/colors": "^1.2.1",
"@types/node": "^16.9.1",
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"eslint": "^7.31.0",

@@ -40,4 +44,7 @@ "eslint-config-airbnb-base": "^14.2.1",

"prettier-eslint": "^12.0.0",
"prettier-plugin-jsdoc": "^0.3.23"
"typescript": "^4.4.3"
},
"dependencies": {
"colors": "^1.4.0"
}
}

@@ -44,7 +44,7 @@ # Jason

```javascript
const format = require('jason-formatter');
const format = require('jason-formatter')
console.log(format(rawData, { tabs: 2 }));
console.log(format(rawData, { tabs: 2 }))
```
You can see an example of use in [test/formatter.js](./tests/formater.js).

@@ -12,2 +12,1 @@ {

}

Sorry, the diff of this file is not supported yet

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