0.0.2 • Published 8 years ago
potpourri v0.0.2
Potpourri
pot•pour•ri (pō′pŏŏ rē′), n.
- A mixture of dried petals of roses or other flowers with spices, kept in a jar for their fragrance.
- A musical medley.
- A collection of miscellaneous
literaryJS extracts. - Any mixture, esp. of unrelated objects,
subjectsfunctions, etc.
Usage
$ npm i potpourri [--save|--save-dev]
With ES2015:
import {promisify} from 'potpourri';
promisify(fs, 'readFile')('/etc/passwd').then(passwd => console.log(String(passwd)));
With ES5:
var potpourri = require('potpourri/dist/es5');
potpourri.promisify(fs, 'readFile')('/etc/passwd').then(passwd => console.log(String(passwd)));
API reference
Development
$ npm i
$ npm run build
Testing:
$ npm test
Continuous building and testing:
$ npm run watch