potpourri
v0.0.2
Published
A bunch of utilities young/small enough to not be in its own module
Readme
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 ~~literary~~ JS extracts.
- Any mixture, esp. of unrelated objects, ~~subjects~~ functions, 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 buildTesting:
$ npm testContinuous building and testing:
$ npm run watch