Sha256: 8f699b70d2be8ee244b8b43e4069d2e01f210e803685a304444d850a08e117a8

Contents?: true

Size: 693 Bytes

Versions: 129

Compression:

Stored size: 693 Bytes

Contents

# os-tmpdir [![Build Status](https://travis-ci.org/sindresorhus/os-tmpdir.svg?branch=master)](https://travis-ci.org/sindresorhus/os-tmpdir)

> Node.js [`os.tmpdir()`](https://nodejs.org/api/os.html#os_os_tmpdir) [ponyfill](https://ponyfill.com)

Use this instead of `require('os').tmpdir()` to get a consistent behavior on different Node.js versions (even 0.8).


## Install

```
$ npm install --save os-tmpdir
```


## Usage

```js
const osTmpdir = require('os-tmpdir');

osTmpdir();
//=> '/var/folders/m3/5574nnhn0yj488ccryqr7tc80000gn/T'
```


## API

See the [`os.tmpdir()` docs](https://nodejs.org/api/os.html#os_os_tmpdir).


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)

Version data entries

129 entries across 107 versions & 18 rubygems

Version Path
immosquare-cleaner-0.1.40 node_modules/os-tmpdir/readme.md
optimacms-0.1.61 spec/dummy/node_modules/os-tmpdir/readme.md
reed_sdk-1.0.1 node_modules/os-tmpdir/readme.md
reed_sdk-1.0.0 node_modules/os-tmpdir/readme.md
disco_app-0.18.0 test/dummy/node_modules/fsevents/node_modules/os-tmpdir/readme.md
disco_app-0.18.0 test/dummy/node_modules/os-tmpdir/readme.md
disco_app-0.18.2 test/dummy/node_modules/os-tmpdir/readme.md
disco_app-0.16.1 test/dummy/node_modules/os-tmpdir/readme.md
disco_app-0.15.2 test/dummy/node_modules/os-tmpdir/readme.md
disco_app-0.18.4 test/dummy/node_modules/os-tmpdir/readme.md
disco_app-0.18.1 test/dummy/node_modules/os-tmpdir/readme.md
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/os-tmpdir/readme.md
disco_app-0.14.0 test/dummy/node_modules/os-tmpdir/readme.md
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/os-tmpdir/readme.md
tang-0.2.1 spec/tang_app/node_modules/os-tmpdir/readme.md
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/os-tmpdir/readme.md
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/os-tmpdir/readme.md
ruby2js-4.0.4 lib/tasks/testrails/node_modules/os-tmpdir/readme.md
ruby2js-4.0.3 lib/tasks/testrails/node_modules/os-tmpdir/readme.md
tang-0.2.0 spec/tang_app/node_modules/os-tmpdir/readme.md