# moonc

> Transpile a [MoonScript](https://github.com/leafo/moonscript) file.

Latest version **1.1.5** (published 2018-04-16) · 0 weekly downloads

## Install

```sh
npm install moonc
pnpm add moonc
yarn add moonc
bun add moonc
```

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.5 |
| Published | 2018-04-16 |
| First published | 2018-04-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | aleclarson |

## Links

- npm: https://www.npmjs.com/package/moonc
- npm.io page: https://npm.io/package/moonc

## Dependencies (2)

- [huey](https://npm.io/package/huey.md) github:aleclarson/huey#1.1.1
- [is-stream](https://npm.io/package/is-stream.md) ^1.1.0

## Recent versions

- 1.1.5 (latest) — 2018-04-16
- 1.1.4 — 2018-04-16

## README

# moonc v1.1.5

Transpile a [MoonScript](https://github.com/leafo/moonscript) file.

```js
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'))
```

---
_Source: https://npm.io/package/moonc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
