Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
gulp-jsonlint
Advanced tools
jsonlint plugin for gulp
First, install gulp-jsonlint
as a development dependency:
npm install --save-dev gulp-jsonlint
Then, add it to your gulpfile.js
:
var jsonlint = require("gulp-jsonlint");
gulp.src("./src/*.json")
.pipe(jsonlint())
.pipe(jsonlint.reporter());
Using a custom reporter:
var jsonlint = require('gulp-jsonlint');
var gutil = require('gulp-util');
var myCustomReporter = function (file) {
gutil.log('File ' + file.path + ' is not valid JSON.');
};
gulp.src('./src/*.json');
.pipe(jsonlint())
.pipe(jsonlint.reporter(myCustomReporter));
For now, options
are not supported yet.
Type: function
You can pass a custom reporter function. If ommited then the default reporter will be used.
The customReporter
function will be called with the argument file
.
Type: object
This argument has the attribute jsonlint
wich is an object that contains a success
boolean attribute. If it's false you also have a message
attribute containing the jsonlint error message.
FAQs
A jsonlint plugin for Gulp
The npm package gulp-jsonlint receives a total of 8,455 weekly downloads. As such, gulp-jsonlint popularity was classified as popular.
We found that gulp-jsonlint 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.