
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
depcheck-babel-parser
Advanced tools
A depcheck babel parser that uses an existing babel config instead of a fixed set of plugins.
A depcheck babel parser that uses an existing babel config instead of a fixed set of plugins.
# NPM
$ npm install depcheck-babel-parser
# Yarn
$ yarn add depcheck-babel-parser
Start by creating a .babelrc.json file with your babel config, if needed.
Custom parsers are currently only supported when using depcheck via the Node.js API. Simply add the parser to your parser config and run depcheck:
import depcheck from 'depcheck'
import babelParser from 'depcheck-babel-parser'
const options = {
parsers: {
'*.js': babelParser,
},
}
depcheck('/path/to/your/project', options, (unused) => {
console.log(unused.dependencies); // an array containing the unused dependencies
console.log(unused.devDependencies); // an array containing the unused devDependencies
console.log(unused.missing); // a lookup containing the dependencies missing in `package.json` and where they are used
console.log(unused.using); // a lookup indicating each dependency is used by which files
console.log(unused.invalidFiles); // files that cannot access or parse
console.log(unused.invalidDirs); // directories that cannot access
})
Unless stated otherwise all works are:
Copyright © Sebastian Landwehr info@dword-design.de
and licensed under:
FAQs
A depcheck babel parser that uses an existing babel config instead of a fixed set of plugins.
The npm package depcheck-babel-parser receives a total of 2 weekly downloads. As such, depcheck-babel-parser popularity was classified as not popular.
We found that depcheck-babel-parser 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.