@swc/register

Super fast alternative for babel-register

Use @swc-node/register instead
Last updated 4 years ago by kdy1 .
(Apache-2.0 OR MIT) · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @swc/register 
SYNC missed versions from official npm registry.

@swc/register

One of the ways you can use swc is through the require hook. The require hook will bind itself to node's require and automatically compile files on the fly.

Install

npm i -D @swc/core @swc/register

or

yarn add --dev @swc/core @swc/register

Usage

require("@swc/register");

All subsequent files required by node will be transformed by swc. You can also call @swc/register directly from command line.

swc-node <filename>
node -r '@swc/register' <filename>

 


@swc/register is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0). See COPYRIGHT for details.

Current Tags

  • 0.1.10                                ...           latest (4 years ago)

10 Versions

  • 0.1.10 [deprecated]           ...           4 years ago
  • 0.1.9 [deprecated]           ...           4 years ago
  • 0.1.8 [deprecated]           ...           4 years ago
  • 0.1.7 [deprecated]           ...           6 years ago
  • 0.1.6 [deprecated]           ...           6 years ago
  • 0.1.5 [deprecated]           ...           6 years ago
  • 0.1.4 [deprecated]           ...           6 years ago
  • 0.1.2 [deprecated]           ...           6 years ago
  • 0.1.1 [deprecated]           ...           6 years ago
  • 0.1.0 [deprecated]           ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (9)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |