Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

frosas/potpourri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Potpourri

Build Status

(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 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;

...

API reference

Development

$ npm i
$ npm run build

Testing:

$ npm test

Continuous building and testing:

$ npm run watch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published