@atomiq/promisify
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@atomiq/promisify", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Convert callback-based functions to use io.js promises", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -1,3 +0,3 @@ | ||
promisify-iojs | ||
============== | ||
@atomiq/promisify | ||
================= | ||
@@ -11,3 +11,3 @@ [![npm version](https://badge.fury.io/js/promisify-iojs.svg)](http://badge.fury.io/js/promisify-iojs) | ||
Promisify an object or function and it will over all member properites | ||
Promisify an object or function and it will walk over all member properites | ||
and up prototype chains to ensure all callback-style async functions are converted | ||
@@ -20,6 +20,12 @@ to promises. The easiest thing is to just promisify modules when loading them. | ||
Under the hood, @atomiq/promisify uses [denodeify](https://www.npmjs.com/package/denodeify) | ||
to create the promise wrapper over individual async functions. | ||
This package uses the new scoped package support available with `npm` versions greater than 2.7.0. | ||
If you're not familiar with using scoped packages, see [this page](https://docs.npmjs.com/getting-started/scoped-packages). | ||
## Example: promisify a loaded module | ||
```js | ||
const promisify = require('promisify-iojs'); | ||
const promisify = require('@atomiq/promisify'); | ||
@@ -26,0 +32,0 @@ const fs = promisify(require('fs')); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61648
133