Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

optional Promise API #45

Open
Open
@jneuendorf

Description

@jneuendorf

What do you think about supporting async and await (aka. a Promise-based API)? I think it would be greate since packages relying on fs-plus (e.g. atom/season) could easily use the cool ES7 async/await as well.
There is another fs extension node-fs-extra that returns Promises if no callback is provided (which I really like). Of course,node-fs-extra carries along some extra methods but those should be able to be ignored easily from what's exported by fs-plus (in case you even care).

Anyway node-fs-extra can be used as a drop in replacement for fs. So it'd be really easy for you to also support the Promise API by using node-fs-extra as a dependency in your package.json instead of the native fs module.

In case you're interested I'd be willing to create a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions