0.0.2 • Published 8 years ago

potpourri v0.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

Potpourri

pot•pour•ri (pō′pŏŏ rē′), n.

  1. A mixture of dried petals of roses or other flowers with spices, kept in a jar for their fragrance.
  2. A musical medley.
  3. A collection of miscellaneous literary JS extracts.
  4. 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 build

Testing:

$ npm test

Continuous building and testing:

$ npm run watch
0.0.2

8 years ago

0.0.1

8 years ago