Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@swc/core-linux-x64-gnu

Package Overview
Dependencies
Maintainers
2
Versions
573
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swc/core-linux-x64-gnu

Super-fast alternative for babel

  • 1.7.12-nightly-20240816.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.4M
decreased by-3.39%
Maintainers
2
Weekly downloads
 
Created

What is @swc/core-linux-x64-gnu?

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.

What are @swc/core-linux-x64-gnu's main functionalities?

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 });

Other packages similar to @swc/core-linux-x64-gnu

Keywords

FAQs

Package last updated on 16 Aug 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc