Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promises #12

Open
grantcarthew opened this issue Sep 3, 2015 · 1 comment
Open

Promises #12

grantcarthew opened this issue Sep 3, 2015 · 1 comment

Comments

@grantcarthew
Copy link

Hi Peter,

This package is fabulous. You have done a great job, well done.
Are there any plans to move the functions to promise based?

I know personal projects can chew up time. I would love to do this myself but for time.

Again, great work.

@oliversalzburg
Copy link
Contributor

Just FYI, we're using bluebird to promisify node-filestorage like so:

const Promise = require( "bluebird" );

const filestorage   = require( "filestorage" );
fileStorage = filestorage.create( storageLocation );

// The read() method responds with multiple success arguments.
fileStorage = Promise.promisifyAll( fileStorage, {
    filter    : name => name === "read",
    multiArgs : true
} );

fileStorage = Promise.promisifyAll( fileStorage );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants