Socket
Book a DemoInstallSign in
Socket

fly-mz

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fly-mz

Write modernized flyfiles.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

fly-mz

Write flyfile.js with modern JS (ES2015+).

NPM

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:

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.

Keywords

fly

FAQs

Package last updated on 11 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts