https://github.com/karimsa/fly-mz
Write flyfile.js with modern JS (ES2015+).
https://github.com/karimsa/fly-mz
Last synced: 3 months ago
JSON representation
Write flyfile.js with modern JS (ES2015+).
- Host: GitHub
- URL: https://github.com/karimsa/fly-mz
- Owner: karimsa
- License: other
- Created: 2017-06-11T04:30:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-11T08:27:19.000Z (about 8 years ago)
- Last Synced: 2025-03-11T21:03:58.036Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# fly-mz
Write `flyfile.js` with modern JS (ES2015+).
[](https://nodei.co/npm/fly-mz/)
## Usage
To use, first install via npm (see above) and then just call fly normally.
You should now be able to write your `flyfile.js` with all the ES2015+ code
you want. For instance:```javascript
const fly = require('fly-load')()export default function* () {
yield fly.source(/* do magic */)
}
```### Advantages over `fly-esnext`
This project is based on the ideas of `fly-esnext`, but uses babel instead
of regexp. Due to this, you can space your code the way you like and you will
automatically have ES2015+ support and not just limited features (like async/await).The only drawback to this is that on older versions of node that require more
transpiling (i.e. node v4), it will be marginally slower than using `fly-esnext`. But
the trade off is between the marginal performance and proper feature support.`fly-mz` also uses proper contextualized script running so you can write regular node
code in your `flyfile.js` (like use `console.log()`) which is not supported by `fly-esnext`.## License
Copyright (C) 2017 Karim Alibhai.
Licensed under MIT license.