All Projects → yisar → node_swc

yisar / node_swc

Licence: MIT License
swc node binding use wasm

Programming Languages

rust
11053 projects
javascript
184084 projects - #8 most used programming language

node_swc

swc node binding use wasm

Build

Make sure you have rust wasm-pack installed.

$ yarn build # build wasm, node

Usage

import { parseSync, printSync } from 'node-swc'

const ast = parseSync(`const a: string = "hello world"`, {
  syntax: 'typescript'
})

const { code } = printSync(ast, {
  minify: true
})

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].