fcb

0.1.1 • Public • Published

fcb

Just converts a callback to a promise

import { readFile } from 'fs'
import fcb from 'fcb'

fcb(cb => readFile('path/to/file', 'utf8', cb))
.then(contents => console.log(contents))
.catch(error => console.log(error.code));

Readme

Keywords

none

Package Sidebar

Install

npm i fcb

Weekly Downloads

1

Version

0.1.1

License

Apache-2.0

Last publish

Collaborators

  • spalger