# vow-node

> Extension for Vow to work with nodejs-style callbacks

Latest version **0.3.0** (published 2015-04-23) · 0 weekly downloads

## Install

```sh
npm install vow-node
pnpm add vow-node
yarn add vow-node
bun add vow-node
```

## 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-04-23 |
| First published | 2013-11-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.4.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Dmitry Filatov |
| Maintainers | dfilatov |
| Keywords | vow, nodejs, callback, promise, promisify |

## Links

- npm: https://www.npmjs.com/package/vow-node
- Repository: http://github.com/dfilatov/vow-node
- Homepage: https://github.com/dfilatov/vow-node
- Issues: https://github.com/dfilatov/vow-node/issues
- npm.io page: https://npm.io/package/vow-node

## 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

- 0.3.0 (latest) — 2015-04-23
- 0.2.1 — 2014-08-14
- 0.2.0 — 2014-01-27
- 0.1.0 — 2013-11-15

## README

vow-node [![NPM version](https://badge.fury.io/js/vow-node.png)](http://badge.fury.io/js/vow-node) [![Build Status](https://secure.travis-ci.org/dfilatov/vow-node.png)](http://travis-ci.org/dfilatov/vow-node)
=========
Vow-node is a small extension for [vow](https://github.com/dfilatov/vow) to work with nodejs-style callbacks

Getting Started
---------------
###In Node.js###
You can install using Node Package Manager (npm):

    npm install vow-node

API
---

####promisify(fn)####
Transforms given function `fn` to a function that returns promise.
````javascript
var fs = require('fs'),
    readFile = vowNode.promisify(fs.readFile);

readFile('package.json').then(function(content) {
    console.log(content);
});

````

####invoke(fn, ...args)####
Invokes given function `fn` with arguments `args`.
````javascript
var fs = require('fs');

vowNode.invoke(fs.readFile, 'package.json').then(function(content) {
    console.log(content);
});

````

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