# tsubaki

> Promisify with native promises.

Latest version **1.3.14** (published 2021-10-25) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.14 |
| Published | 2021-10-25 |
| First published | 2017-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=6.0.0 |
| Dependencies | 0 |
| Unpacked size | 13.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | iCrawl |
| Maintainers | crawl, vzwgrey |
| Keywords | promisify, native, promises |

## Links

- npm: https://www.npmjs.com/package/tsubaki
- Repository: https://github.com/iCrawl/tsubaki
- Homepage: https://github.com/iCrawl/tsubaki#readme
- Issues: https://github.com/iCrawl/tsubaki/issues
- npm.io page: https://npm.io/package/tsubaki

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.3.14 (latest) — 2021-10-25
- 1.3.13 — 2021-10-20
- 1.3.12 — 2021-10-20
- 1.3.11 — 2021-10-19
- 1.3.10 — 2021-10-19
- 1.3.9 — 2020-12-25
- 1.3.8 — 2020-01-25
- 1.3.7 — 2020-01-14
- 1.3.6 — 2020-01-14
- 1.3.5 — 2020-01-02
- 1.3.4 — 2020-01-02
- 1.3.3 — 2019-12-21
- 1.3.2 — 2019-08-11
- 1.3.1 — 2018-05-18
- 1.3.0 — 2017-10-28
- … 4 more at https://npm.io/package/tsubaki/versions

## README

# Tsubaki

> Promisify with native promises

<div align="center">
	<a href="https://www.npmjs.com/package/tsubaki"><img src="https://img.shields.io/npm/v/tsubaki.svg?maxAge=3600" alt="NPM version" /></a>
	<a href="https://www.npmjs.com/package/tsubaki"><img src="https://img.shields.io/npm/dt/tsubaki.svg?maxAge=3600" alt="NPM downloads" /></a>
</div>

## Features

- Actually maintained
- Uses node 8's util.promisify when running on node 8 to promisify functions

## Install

```bash
npm install tsubaki
```

## Usage

```js
const { promisifyAll } = require('tsubaki');

const fs = promisifyAll(require('fs'));

fs.writeFileAsync('test.txt', '123456', 'utf-8')
	.then(() => fs.readFileAsync('test.txt', 'utf-8'))
	.then((content) => console.log(content));
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**Tsubaki** © [iCrawl](https://github.com/iCrawl), Released under the [MIT](https://github.com/iCrawl/Tsubaki/blob/master/LICENSE) License.<br>
Authored and maintained by iCrawl.

> GitHub [@iCrawl](https://github.com/iCrawl) · Twitter [@iCrawlToGo](https://twitter.com/iCrawlToGo)

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