moonc

1.1.5 • Public • Published

moonc v1.1.5

Transpile a MoonScript file.

const moonc = require('moonc')
 
// moonc() returns a `ReadableStream` that emits transpiled code.
moonc('x = 1')
  .pipe(fs.createWriteStream('foo.lua'))
  .once('error', console.error)
 
// moonc.promise() resolves with the transpiled code.
let lua = await moonc.promise('x = 1')
 
// Both functions work with `ReadableStream` objects, too!
moonc(fs.createReadStream('foo.moon'))

Readme

Keywords

none

Package Sidebar

Install

npm i moonc

Weekly Downloads

0

Version

1.1.5

License

none

Unpacked Size

4.84 kB

Total Files

5

Last publish

Collaborators

  • aleclarson