# gobble-esperanto

> Transpile ES6 modules to AMD and CommonJS with gobble and esperanto

Latest version **0.3.0** (published 2015-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install gobble-esperanto
pnpm add gobble-esperanto
yarn add gobble-esperanto
bun add gobble-esperanto
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2015-05-11 |
| First published | 2014-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Rich Harris |
| Maintainers | rich_harris |
| Keywords | gobble |

## Links

- npm: https://www.npmjs.com/package/gobble-esperanto
- Repository: https://github.com/gobblejs/gobble-esperanto
- Issues: https://github.com/gobblejs/gobble-esperanto/issues
- npm.io page: https://npm.io/package/gobble-esperanto

## Dependencies (1)

- [esperanto](https://npm.io/package/esperanto.md) ^0.7.0

## Recent versions

- 0.3.0 (latest) — 2015-05-11
- 0.2.4 — 2015-01-10
- 0.2.3 — 2015-01-02
- 0.2.2 — 2014-12-21
- 0.2.1 — 2014-11-26
- 0.2.0 — 2014-11-14
- 0.1.0 — 2014-08-17

## README

# gobble-esperanto

Convert ES6 modules to AMD and CommonJS with gobble and [esperanto](https://github.com/rich-harris/esperanto).

## Installation

First, you need to have gobble installed - see the [gobble readme](https://github.com/gobblejs/gobble) for details. Then,

```bash
npm i -D gobble-esperanto
```

## Usage

**gobblefile.js**

```js
var gobble = require( 'gobble' );
module.exports = gobble( 'js' ).map( 'esperanto', options );
```

The `options` object can have the following properties:

* `type` (string) - 'amd', 'cjs' or 'umd'. Default to 'amd'
* `name` (string) - name to use for UMD exports (required if `type` is `umd`)
* `useFilename` (boolean) - if `name` is not supplied for UMD exports and this is true, the UMD name will be set to the filename without the extension
* `strict` (boolean) - whether to use [strict mode](https://github.com/Rich-Harris/esperanto/wiki/Strict-mode)
* `sourceMap` (`true` or `'inline'`) - whether to create a sourcemap

## License

MIT. Copyright 2014 Rich Harris

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