1.0.5 • Published 6 years ago
babel-plugin-fn-call-operator v1.0.5
babel-plugin-fn-call-operator
just like Haskell's '$' operator.
Examples
store.dispatch << setTagForm({'name': val.target.value})Turn into
store.dispatch(setTagForm({'name': val.target.value}))Disabling in current scope
If you want to use the original pipe operator, you can disable this plugin in current scope (and it children scopes) using "no fn-call" directive as described in the original one.
Installation
$ npm install --save-dev babel-plugin-fn-call-operatorUsage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["fn-call-operator"]
}Via CLI
$ babel --plugins fn-call-operator script.jsVia Node API
require("babel-core").transform("code", {
plugins: ["fn-call-operator"]
});License
MIT