# babel-plugin-transform-util-promisify

> Transforms util.promisify for node versions < 8

Latest version **0.2.2** (published 2018-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-transform-util-promisify
pnpm add babel-plugin-transform-util-promisify
yarn add babel-plugin-transform-util-promisify
bun add babel-plugin-transform-util-promisify
```

## 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.2.2 |
| Published | 2018-03-03 |
| First published | 2018-03-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 22.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Keyvan Mir Mohammad Sadeghi |
| Maintainers | keyvan-m-sadeghi |
| Keywords | babel, babel-plugin, promise, promosify |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-transform-util-promisify
- Repository: https://github.com/assister-ai/babel-plugin-transform-util-promisify
- Homepage: https://github.com/assister-ai/babel-plugin-transform-util-promisify#readme
- Issues: https://github.com/assister-ai/babel-plugin-transform-util-promisify/issues
- npm.io page: https://npm.io/package/babel-plugin-transform-util-promisify

## Dependencies (2)

- [babylon](https://npm.io/package/babylon.md) ^6.18.0
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.18.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

- 0.2.2 (latest) — 2018-03-03
- 0.2.1 — 2018-03-03
- 0.2.0 — 2018-03-03
- 0.1.3 — 2018-03-01
- 0.1.2 — 2018-03-01
- 0.1.1 — 2018-03-01
- 0.1.0 — 2018-03-01

## README

[![npm version](https://badge.fury.io/js/babel-plugin-transform-util-promisify.svg)](https://www.npmjs.com/package/babel-plugin-transform-util-promisify)
[![Build Status](https://travis-ci.org/assister-ai/babel-plugin-transform-util-promisify.svg?branch=master)](https://travis-ci.org/assister-ai/babel-plugin-transform-util-promisify)

# babel-plugin-transform-util-promisify
Transforms `util.promisify` to a function definition
for node versions &lt; 8, automatically detects if node version >= 8 and does nothing if so.

## Install

```shell
npm install babel-plugin-transform-util-promisify --save-dev
```

## Usage

Add at the top of plugins in `.babelrc`:

```json
{
  "plugins": [
    "transform-util-promisify"
    ],
    "presets": [
      ["env", {
        "targets": {
          "node": "current"
        }
      }]
    ]
}
```

The plugin currently transforms code only in these forms:

```js
import { promisify } from 'util';
```

and

```js
const { promisify } = require('promisify');
```

## License

[MIT](https://github.com/assister-ai/babel-plugin-transform-util-promisify/blob/master/LICENSE)

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