# babel-plugin-transform-function-sent

> Patch function.sent

Latest version **1.0.1** (published 2016-06-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-transform-function-sent
pnpm add babel-plugin-transform-function-sent
yarn add babel-plugin-transform-function-sent
bun add babel-plugin-transform-function-sent
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-06-20 |
| First published | 2016-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | hax |
| Maintainers | hax |
| Keywords | babel-plugin, generators, function.sent, meta property |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-transform-function-sent
- Repository: https://github.com/hax/babel-plugin-transform-function-sent
- Homepage: https://github.com/hax/babel-plugin-transform-function-sent#readme
- Issues: https://github.com/hax/babel-plugin-transform-function-sent/issues
- npm.io page: https://npm.io/package/babel-plugin-transform-function-sent

## Dependencies (3)

- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.9.2
- [babel-template](https://npm.io/package/babel-template.md) ^6.9.0
- [babel-plugin-syntax-function-sent](https://npm.io/package/babel-plugin-syntax-function-sent.md) ^6.8.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-06-20
- 7.0.0-beta.3 (next) — 2017-10-15
- 7.0.0-beta.2 — 2017-09-26
- 7.0.0-beta.1 — 2017-09-19
- 7.0.0-beta.0 — 2017-09-12
- 7.0.0-alpha.20 — 2017-08-30
- 7.0.0-alpha.19 — 2017-08-07
- 7.0.0-alpha.18 — 2017-08-03
- 7.0.0-alpha.17 — 2017-07-26
- 1.0.0 — 2016-06-06

## README

**IMPORTANT NOTE: This repo is retired since August 2017, because upcoming Babel 7.0 will officially support `function.sent` use the similar tranformation as this repo. The npm package has already transfered to Babel org.**
---

# babel-plugin-transform-function-sent

Patch [function.sent meta property](https://github.com/allenwb/ESideas/blob/master/Generator%20metaproperty.md)


[![npm version](https://badge.fury.io/js/babel-plugin-transform-function-sent.svg)](https://badge.fury.io/js/babel-plugin-transform-function-sent)
[![build status](https://travis-ci.org/hax/babel-plugin-transform-function-sent.svg?branch=master)](https://travis-ci.org/hax/babel-plugin-transform-function-sent)
[![dependencies](https://david-dm.org/hax/babel-plugin-transform-function-sent.svg)](https://david-dm.org/hax/babel-plugin-transform-function-sent)
[![devDependencies](https://img.shields.io/david/dev/hax/babel-plugin-transform-function-sent.svg)](https://david-dm.org/hax/babel-plugin-transform-function-sent#info=devDependencies)


## Why this plugin

The official transform-regenerator plugin already support `function.sent`, but
require generators to be transformed. Many people avoid use regenerator,
because all JavaScript engines already support ES2015 generators natively, and
major browsers / node 0.12+ already ship generators for years.
(See also https://github.com/alekseykulikov/babel-preset-es2015-node5/issues/3
for similar discussion and result plugin [transform-es2015-generator-return](https://github.com/hax/babel-plugin-transform-es2015-generator-return))

If you are one of them, this plugin is for you. It only patch `function.sent`,
and will not touch other parts of your source code.


## Installation
```sh
npm install babel-plugin-transform-function-sent
```

## Usage

### Via `.babelrc` (Recommended)
#### .babelrc
```json
{
	"plugins": ["transform-function-sent"]
}
```

### Via CLI
```sh
babel --plugins transform-function-sent
```

### Via Node API
```js
require("babel-core").transform("code", {
  plugins: ["transform-function-sent"]
})
```

### Use with `transform-es2015-function-name`
**NOTE:** Please put `transform-es2015-function-name` before this plugin.
Sample:
```json
{
	"plugins": ["transform-es2015-function-name", "transform-function-sent"]
}
```

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