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

@next/swc-darwin-x64

Package Overview
Dependencies
Maintainers
5
Versions
1680
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@next/swc-darwin-x64

This is the **x86_64-apple-darwin** binary for `@next/swc`

  • 14.2.19
  • next-14
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.4M
decreased by-16.35%
Maintainers
5
Weekly downloads
 
Created

What is @next/swc-darwin-x64?

The @next/swc-darwin-x64 npm package is a precompiled binary for the SWC project specifically for macOS on x64 architecture. SWC (Speedy Web Compiler) is a super-fast compiler written in Rust that is primarily used to transpile JavaScript and TypeScript code. It is designed to be a faster alternative to Babel with support for modern JavaScript features.

What are @next/swc-darwin-x64's main functionalities?

JavaScript/TypeScript Transpilation

This feature allows developers to transpile modern JavaScript or TypeScript code into a version compatible with older browsers or environments. The code sample demonstrates how to transpile a simple JavaScript declaration to ES5 syntax.

require('@next/swc-darwin-x64').transformSync('const x = 1;', { jsc: { target: 'es5' } });

Minification

This feature enables the minification of JavaScript code to reduce file size, which is beneficial for production environments. The code sample shows how to minify a simple JavaScript variable declaration.

require('@next/swc-darwin-x64').transformSync('const x = 1;', { jsc: { minify: true } });

Source Maps

This feature supports the generation of source maps, which help in debugging by mapping the transformed code back to the original source code. The code sample illustrates enabling source map generation for a simple code snippet.

require('@next/swc-darwin-x64').transformSync('const x = 1;', { sourceMaps: true });

Other packages similar to @next/swc-darwin-x64

FAQs

Package last updated on 03 Dec 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