
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@smpx/babel-changed
Advanced tools
A command line tool that only compiles changed files with babel.
Globally:
npm install -g @smpx/babel-changed
# OR
yarn global add @smpx/babel-changed
Or locally:
npm install @smpx/babel-changed --save-dev
# OR
yarn add @smpx/babel-changed --dev
Default source directory is src
and default out directory is dist
babel-changed
# Output
[babel] compiling 1 files
babel-changed: 1413.925ms
bebel-changed -h
Usage: babel-changed [options]
Options:
-V, --version output the version number
-s, --src [dir] Specify Source Directory (default: "src")
-d, --dest [dir] Specify Destination Directory (default: "dist")
-f, --file-glob [pattern] Glob pattern to match files in source directory (default: "**/*.*")
-i, --ignore-glob [pattern] Glob pattern to match files to ignore (default: "")
-e, --extensions <exts> Extensions to compile (comma separated) (default: ".js")
-m, --source-maps [boolean] Enable source maps (default: true)
-c, --copy [boolean] Copy files other than .js files (default: true)
-h, --help output usage information
If your source directory is source
destination directory is out
then use
babel-changed -s source -d out
For compiling TS/JSX files with babel, change the extensions to compile like below:
babel-changed -e ".js,.ts"
NOTE: Extension of compiled file will always be .js
.
FAQs
Only compile changed files with babel
We found that @smpx/babel-changed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.