2.0.0 • Published 9 years ago
fs-extra-as-promised v2.0.0
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.'