glossolalia
The ES6 to ES5 to ES6 to ES5 transpiler you never knew you wanted
Last updated 4 years ago by bdchauvette .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install glossolalia 
SYNC missed versions from official npm registry.

glossolalia

or: There and Back Again

glossolalia is a JavaScript transpiler that repeatedly transpiles code back and forth between ES5 and ES6.

Ever wonder what your babel output would look like as ES6? Wonder no more!

Shoutout to /u/toqy for the idea!


Installation

# For API usage
npm i -S glossolalia
# For CLI usage
npm i -g glossolalia

CLI

# Example:
glossolalia --output transformed.js original.js
# For more info:
glossolalia --help

API

glossolalia.transform(code, [options]): string

glossolalia.transform(
  code: string,
  options: ?Object = {
    initialSpec: 'es6',
    iterations: 2,
    babel: { presets: ['es2015'] },
    lebab: {
      'class': true,
      'template': true,
      'arrow': true,
      'let': true,
      'default-param': true,
      'arg-spread': true,
      'obj-method': true,
      'obj-shorthand': true,
      'no-strict': true,
      'commonjs': true,
    },
  }
);

Current Tags

  • 0.1.0                                ...           latest (4 years ago)

1 Versions

  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (11)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |