# @swc/register

> Super fast alternative for babel-register

Latest version **0.1.10** (published 2022-01-27) · (Apache-2.0 OR MIT) license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @swc/register
pnpm add @swc/register
yarn add @swc/register
bun add @swc/register
```

Provides the command `swc-node`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.10 |
| Published | 2022-01-27 |
| First published | 2019-10-25 |
| Weekly downloads | 0 |
| License | (Apache-2.0 OR MIT) |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 33.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 85 |
| Author | 강동윤 |
| Maintainers | kdy1 |
| Keywords | swc, typescript, babel |

## Links

- npm: https://www.npmjs.com/package/@swc/register
- Repository: https://github.com/swc-project/register
- Homepage: https://github.com/swc-project/register#readme
- Issues: https://github.com/swc-project/register/issues
- npm.io page: https://npm.io/package/@swc/register

## Dependencies (3)

- [pirates](https://npm.io/package/pirates.md) ^4.0.1
- [lodash.clonedeep](https://npm.io/package/lodash.clonedeep.md) ^4.5.0
- [source-map-support](https://npm.io/package/source-map-support.md) ^0.5.13

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.10 (latest) — 2022-01-27
- 0.1.9 — 2021-12-29
- 0.1.8 — 2021-12-23
- 0.1.7 — 2020-05-01
- 0.1.6 — 2020-01-26
- 0.1.5 — 2020-01-26
- 0.1.4 — 2019-11-23
- 0.1.2 — 2019-11-23
- 0.1.1 — 2019-11-23
- 0.1.0 — 2019-10-25

## README

@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
```bash
npm i -D @swc/core @swc/register
```

or

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

### Usage
```bash
require("@swc/register");
```

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

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

&nbsp;

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

[MIT license]: LICENSE-MIT
[Apache License (Version 2.0)]: LICENSE-APACHE
[COPYRIGHT]: COPYRIGHT

---
_Source: https://npm.io/package/@swc/register · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
