# es6y

> An ES6 to ES5 transformer, optionally convert AMD module to YUI3 style

Latest version **0.0.6** (published 2014-04-25) · BSD license · 0 weekly downloads

## Install

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

Provides the command `es6y`.

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2014-04-25 |
| First published | 2014-04-20 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.x |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Gopal Venkatesan |
| Maintainers | g13n |
| Keywords | jstransform, ast, rewriting, refactoring, codegen, syntax, transformation, parsing, pretty-printing |

## Links

- npm: https://www.npmjs.com/package/es6y
- Repository: https://github.com/g13n/es6y
- Issues: https://github.com/g13n/es6y/issues
- npm.io page: https://npm.io/package/es6y

## Dependencies (5)

- [esprima](https://npm.io/package/esprima.md) git://github.com/ariya/esprima.git#harmony
- [bluebird](https://npm.io/package/bluebird.md) 1.1.0
- [minimist](https://npm.io/package/minimist.md) 0.0.8
- [esprima-fb](https://npm.io/package/esprima-fb.md) ~3001.1.0-dev-harmony-fb
- [jstransform](https://npm.io/package/jstransform.md) 3.0.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2014-04-25
- 0.0.4 — 2014-04-21
- 0.0.3 — 2014-04-20
- 0.0.2 — 2014-04-20

## README

# ES6Y

An ES6 to ES5 transformer, optionally convert AMD module to YUI3 style using the Facebook's
[jstransform](https://github.com/facebook/jstransform) module.

The following program:

		define('yui-module-test', [ 'yui', 'node' ], function (Y, node) {
		    console.log(Y.one('#node').setHTML([3, 1, 2].sort((a, b) => { return b - a; })));
		});

gets transformed into:

		YUI.add('yui-module-test', function (Y) {
		    console.log(Y.one('#node').setHTML([3, 1, 2].sort(function(a, b)  { return b - a; })));
		}, '1.0.0', { requires: [ 'node' ] });

Run `es6y --help` to get started.

# Running

		shell$ es6y --yui3 -- input.js
		# creates compiled/input.js
		shell$ es6y --yui3 <input.js
		# outputs the converted file on standard output
		shell$ es6y --outdir=/tmp/js --yui3 -- file1.js file2.js
		# creates /tmp/js/file1.js, /tmp/js/file2.js with the converted output

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