tempdir

2.0.0 • Public • Published

tempdir Build Status

Create a temporary directory.

Installation

$ npm install --save tempdir

Usage

const tempdir = require('tempdir');
 
await tempdir();
//=> /tmp/x/y/z
 
tempdir.sync();
//=> /tmp/x/y/w

API

tempdir()

Returns a Promise, which resolves to a directory path.

tempdir.sync()

Synchronous version of tempdir().

License

MIT © Vadim Demedes

/tempdir/

    Package Sidebar

    Install

    npm i tempdir

    Weekly Downloads

    4

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • vdemedes