Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
jsonlint-cli
Advanced tools
jsonlint-cli - cli wrapper for jsonlint
Thin wrapper around jsonlint
improving on its cli.
It introduces glob expansion and advanced schema validation.
Borrows heavily from jsonlint
in every regard.
jsonlint-cli
introduces valuable improvements
and additions to the cli shipping with jsonlint.
Feature | jsonlint | jsonlint-cli | Description |
---|---|---|---|
json validity checking | :heavy_check_mark: | :heavy_check_mark: | jsonlint-cli uses jsonlint to parse and validate |
local schema validation | :heavy_check_mark: | :heavy_check_mark: | specify local schemas to validate input against |
read from stdin | :heavy_check_mark: | :heavy_check_mark: | stream json in via stdin |
read from fs | :heavy_check_mark: | :heavy_check_mark: | specify file's path to lint |
glob expansion | :x: | :heavy_check_mark: | specify globs of files to lint, e.g. **/*.json |
remote schema validation | :x: | :heavy_check_mark: | specify remote schemas to validate against |
v4 schema validation | :x: | :heavy_check_mark: | use v4 jsonschema |
config files | :x: | :heavy_check_mark: | support for eslint style config files |
# Install it from npm
npm install -g jsonlint-cli
jsonlint-cli
exposes a command line interface
❯ jsonlint-cli --help
jsonlint-cli@1.0.0 - cli wrapper for jsonlint
[input] reads from stdin if [files] are omitted
--ignore,-i glob pattern to exclude from linting, defaults to: node_modules
--validate,-s uri to schema to use for validation, defaults to:
--indent,-w whitespace to use for pretty printing, defaults to: " "
--env,-e json schema env to use for validation, defaults to: json-schema-draft-04
--pretty,-p pretty-print the input, defaults to: false
--sort,-t sort json keys alphabetically, defaults to: false
--version,-v print the version
--help,-h show this help
jsonlint-cli
picks up configuration files,
searching upwards from process.cwd()
or the file path if specified.
{
"validate": "", // schema uri to validate agains
"ignore": ["node_modules/**/*"], // glob patterns to ignore
"indent": "", // indent to use for pretty-printed output
"env": "json-schema-draft-04", // json schema env version to use
"pretty": true // pretty-print formatted json if quiet is false
}
node_modules/ # ignored by default
distribution/
Copyright 2016 by Mario Nebl and contributors. Released under the MIT license.
FAQs
cli wrapper for jsonlint
The npm package jsonlint-cli receives a total of 8,164 weekly downloads. As such, jsonlint-cli popularity was classified as popular.
We found that jsonlint-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.