pr

node builtins wrapped for promises

pr

node builtins wrapped for promises

all of node's builtin apis as Promises/A+ - returning functions. Use the core module APIs you know without the impedence mismatch of adapting them to promises yourself.

var fs = require('pr/fs')

fs.readdir(__dirname).then(function (files) {
  console.log(__dirname + ':\n' + files.join('\n'))
})
  • fs

We're interested in supporting the entire api! Please open a pull request to contribute.

jden jason@denizac.org

Public Domain.

To the extent possible under law, Jason Denizac has waived all copyright and related or neighboring rights to pr. This work is published from: United States.