(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.
$ npm i potpourri [--save|--save-dev]
With ES6:
import {promisify} from 'potpourri';
import * as fs from 'fs';
process.on('unhandledRejection', console.log);
promisify(fs, 'readFile')('/etc/hosts', 'utf8').then(console.log);
With ES5:
var promisify = require('potpourri/dist/es5').promisify;
...
$ npm i
$ npm run build
Testing:
$ npm test
Continuous building and testing:
$ npm run watch