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.'

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i fs-extra-as-promised

Weekly Downloads

3

Version

2.0.0

License

MIT

Last publish

Collaborators

  • aralbalkan