fs-extra-as-promised

2.0.0 • Public • Published

fs-extra as promised

Very simple module that promisifies fs-extra using thrush to workaround the Cannot promisify an API that has normal methods with 'Async'-suffix issue when you try to promisify the same module from multiple other modules.

Usage

fs = require 'fs-extra-as-promised'
fs.existsAsync '/Users'
.then (exists) ->
	if exists
		console.log 'Nice operating system you got there! ;)'
	else
		console.log 'Oh well… can’t win ’em all.'

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i fs-extra-as-promised

    Weekly Downloads

    1

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • aralbalkan