Needling Perl Mongers

    @appgeist/ensure-dir
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/appgeist__ensure-dir package

    1.1.4 • Public • Published

    @appgeist/ensure-dir

    NPM version License

    Utility function to ensure a directory path exists and return a Promise. Uses mkdirp under the hood.

    Usage

    const ensureDir = require("@appgeist/ensure-dir");
    
    await ensureDir("/folder/to/store/lotsa/files");

    Why not mkdirp-promise?

    @appgeist/ensure-dir should be slightly more efficient than mkdirp-promise because it checks whether the specified path exists before trying to create it.

    License

    The ISC License.

    Install

    npm i @appgeist/ensure-dir

    DownloadsWeekly Downloads

    36

    Version

    1.1.4

    License

    ISC

    Unpacked Size

    3.06 kB

    Total Files

    6

    Last publish

    Collaborators

    • icflorescu