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

jlint

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jlint - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

12

cli.js

@@ -33,5 +33,9 @@ #!/usr/bin/env node

function outputJson (content) {
function outputJson (lint) {
if (argv.indexOf('--silent') === -1) {
console.log(cardinal.highlight(content, {json: true}));
if (lint.parsed) {
console.log(cardinal.highlight(lint.content, {json: true}));
} else {
console.log(lint.content);
}
}

@@ -41,9 +45,9 @@ }

jlint(function (lint) {
outputJson(lint);
if (lint.parsed) {
outputJson(lint.content);
console.log(symbols.success);
} else {
outputJson(lint.content);
console.log(symbols.error, lint.exception);
}
});
{
"name": "jlint",
"version": "1.0.1",
"version": "1.0.2",
"description": "CLI that parses the current JSON you have in your current clipboard",

@@ -5,0 +5,0 @@ "main": "index.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