https://github.com/parro-it/babelify-require
Apply babel to a module and then require it.
https://github.com/parro-it/babelify-require
Last synced: 4 months ago
JSON representation
Apply babel to a module and then require it.
- Host: GitHub
- URL: https://github.com/parro-it/babelify-require
- Owner: parro-it
- License: mit
- Created: 2016-02-02T21:07:45.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-02T21:36:50.000Z (almost 10 years ago)
- Last Synced: 2024-09-14T05:11:42.921Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# babelify-require
> Apply babel to a module and then require it.
[](http://travis-ci.org/parro-it/babelify-require)
[](https://npmjs.org/package/babelify-require)
[](https://npmjs.org/package/babelify-require)
## Installation
```bash
npm install --save babelify-require
```
## Usage
```javascript
const babelifyRequire = require('babelify-require');
const result = await babelifyRequire('./es6-module.js');
//result === module exports
```
## License
The MIT License (MIT)
Copyright (c) 2015 parro-it