babel-plugin-always-constraint

1.1.0 • Public • Published

babel-plugin-always-constraint

A babel plugin to rewrite statements labelled with always to linear constraints

Live editable at http://astexplorer.net/#/JrmlrJciNw/7

Example

Transforms

something

to

something else

Installation

$ npm install babel-plugin-always-constraint

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["always-constraint"]
}

Via CLI

$ babel --plugins always-constraint script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["always-constraint"]
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    12
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    12
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i babel-plugin-always-constraint

Weekly Downloads

12

Version

1.1.0

License

MIT

Last publish

Collaborators

  • onsetsu