
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
js-unused-exports
Advanced tools
Tool for identifying and reporting unused exports found in ECMAScript/JavaScript code
Tool for identifying and reporting unused exports found in ECMAScript/JavaScript code.
You may think of it as ESLint no-unused-vars
rule, but for the whole project scope.
Tool uses Babel parser to parse source code. You can provide custom parser options using config file.
npm install -g js-unused-exports
Usage: js-unused-exports [options]
E.g.: js-unused-exports --config "unused-exports-config.json"
Options:
-v, --version output the version number
-c, --config [path] path to the JSON config file
-o --out-dir [path] path to print scan results as JSON
-f, --fix automatically remove "export" directive where possible
-h, --help output usage information
{
// Root project directory or CWD (default)
projectRoot: '',
// Source paths relative to project root
sourcePaths: ['src/**/*.js'],
// Patterns for files that should be ignored
ignorePaths: [],
// Test file patterns
testPaths: [
'src/**/*.spec.js'
],
// Import patterns to ignore
ignoreImportPatterns: [ '(png|gif|jpg|jpeg|css|scss)$' ],
// Export patterns to ignore
ignoreExportPatterns: [ '(stories)' ],
// If you use alias in you codebase you can specify them here, e.g.:
aliases: {
components: 'src/components'
},
// @babel/parser options for parsing source code
// https://babeljs.io/docs/en/babel-parser
parserOptions: {
sourceType: 'module',
plugins: [
'objectRestSpread',
'jsx',
'flow',
'classProperties',
'decorators-legacy',
'exportDefaultFrom'
]
}
}
v1.2.1 (2021-05-28)
FAQs
Tool for identifying and reporting unused exports found in ECMAScript/JavaScript code
The npm package js-unused-exports receives a total of 3 weekly downloads. As such, js-unused-exports popularity was classified as not popular.
We found that js-unused-exports 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.