sg-compiler
Javascript compiler for sugos
Last updated 10 months ago by realglobe .
Apache-2.0 · Repository · Bugs · Original npm · Tarball
$ cnpm install sg-compiler 
SYNC missed versions from official npm registry.

sg-compiler

Build Status npm Version JS Standard

Javascript compiler for sugos

Installation

$ npm install sg-compiler --save

Usage

'use strict'

const sgCompiler = require('sg-compiler')
const co = require('co')

// Compile es6 script
co(function * () {
  let compiler = sgCompiler()

  let compiled = yield compiler.compile(`
    let {foo, bar} = { foo: 'this is foo', bar: 'This is bar' }
    console.log(foo, bar)
  `)
  console.log(compiled) // es5 script
})

License

This software is released under the Apache-2.0 License.

Links

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |