https://github.com/softvisio-node/babel
Babel bundle
https://github.com/softvisio-node/babel
Last synced: 9 months ago
JSON representation
Babel bundle
- Host: GitHub
- URL: https://github.com/softvisio-node/babel
- Owner: softvisio-node
- Created: 2024-09-01T07:27:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-08T20:45:17.000Z (over 1 year ago)
- Last Synced: 2025-01-08T21:43:32.725Z (over 1 year ago)
- Language: JavaScript
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
> ℹ️ Please, see the full project documentation here:
# Introduction
Optimal `babel` config for parsing and transformations.
## Install
```sh
npm install @softvisio/babel
```
## Usage
```javascript
import { createConfig, parseAsync, transformAsync } from "@softvisio/babel";
// parse
const ast = await parseAsync( code, createConfig() );
// transform
const { code, map } = await transformAsync( code, createConfig() );
```