
Research
5 Malicious Chrome Extensions Enable Session Hijacking in Enterprise HR and ERP Systems
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.
gulp-unused
Advanced tools
Opinionated gulp plugin that takes an array of method names and creates a report with many times each is used. Don't expect miracles, this is very naive.
Opinionated gulp plugin that takes an array of method names and creates a report with many times each is used. Don't expect miracles, this is very naive.
Install with npm:
$ npm install --save gulp-unused
Heads up! The matching is naive, but it works well for quick checks.
var gulp = require('gulp');
var unused = require('gulp-unused');
gulp.task('unused', function() {
return gulp.src(['index.js', 'lib/*.js'])
.pipe(unused([options]));
});
Array of method names to check for.
Example
var keys = Object.keys(require('./utils'));
gulp.src(['index.js', 'lib/*.js'])
.pipe(unused({keys: keys}));
As a more comprehensive alternative to options.keys, you may pass glob patterns or file paths of the files with "utils" to search for.
Example
gulp.src(['index.js', 'lib/*.js'])
.pipe(unused({utils: 'lib/utils.js'}));
Given the following project files:
// --lib/utils.js--
exports.foo = function(){};
exports.bar = function(){};
exports.baz = function(){};
// --index.js--
var utils = require('./lib/utils.js');
module.exports = function(str) {
// do some "foo" and "bar" stuff, but not "baz"
utils.foo();
utils.bar();
utils.bar();
};
With the following gulpfile.js:
var gulp = require('gulp');
var unused = require('gulp-unused');
gulp.task('unused', function() {
return gulp.src(['index.js', 'lib/*.js'])
.pipe(unused({utils: 'lib/utils.js'}));
});
Unless options.silent is true, the following would be logged out:
Method | Times used
------ | ----------
bar | 2
foo | 1
baz | 0
------ | ---
unused | .baz
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && verb
Install dev dependencies:
$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb-generate-readme, v0.1.30, on August 21, 2016.
FAQs
Opinionated gulp plugin that takes an array of method names and creates a report with many times each is used. Don't expect miracles, this is very naive.
The npm package gulp-unused receives a total of 311 weekly downloads. As such, gulp-unused popularity was classified as not popular.
We found that gulp-unused 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
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.