Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@swc/core-linux-x64-gnu
Advanced tools
The @swc/core-linux-x64-gnu package is a precompiled version of SWC (Speedy Web Compiler) specifically for Linux x64 systems using the GNU libc. SWC is a super-fast compiler written in Rust that allows for transforming ECMAScript 2015+ code into a backward-compatible version of JavaScript that can be run in older browsers. It's designed for high-speed JavaScript compilation but also includes features for minification, bundling, and testing.
JavaScript/TypeScript Compilation
Compiles modern JavaScript or TypeScript code down to ES5 for compatibility with older browsers.
require('@swc/core-linux-x64-gnu').transformSync('const x = 1;', { jsc: { target: 'es5' } });
Code Minification
Minifies JavaScript code to reduce file size, which is beneficial for production environments.
require('@swc/core-linux-x64-gnu').transformSync('const x = 1;', { minify: true });
Source Maps
Generates source maps for the transformed code, aiding in debugging by mapping the compiled code back to the original source code.
require('@swc/core-linux-x64-gnu').transformFileSync('input.js', { sourceMaps: true });
Babel is a widely used JavaScript compiler that transforms your JavaScript ES6+ code into backwards compatible JavaScript code for current and older browsers or environments. Compared to @swc/core-linux-x64-gnu, Babel is more plugin-driven, allowing for a highly customizable build process but typically operates at a slower compilation speed.
TypeScript is a superset of JavaScript that compiles down to plain JavaScript. It provides optional static typing, classes, and interfaces. While TypeScript focuses more on type safety and is primarily used for development in large codebases, @swc/core-linux-x64-gnu focuses on speed and efficiency in compiling modern JavaScript and TypeScript code.
esbuild is an extremely fast JavaScript bundler and minifier. It compiles JavaScript and TypeScript code much like @swc/core-linux-x64-gnu but emphasizes on bundling and minification speed. esbuild uses Go instead of Rust, and its primary advantage is its speed, especially for bundling, which makes it a strong alternative for development builds and production bundling.
@swc/core-linux-x64-gnu
This is the x86_64-unknown-linux-gnu binary for @swc/core
FAQs
Super-fast alternative for babel
The npm package @swc/core-linux-x64-gnu receives a total of 4,891,410 weekly downloads. As such, @swc/core-linux-x64-gnu popularity was classified as popular.
We found that @swc/core-linux-x64-gnu demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.