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
lux_assets-0.2.1 ./node_modules/os-tmpdir/readme.md
locomotivecms-3.4.0 app/javascript/node_modules/os-tmpdir/readme.md
locomotivecms-3.4.0 app/javascript/node_modules/fsevents/node_modules/os-tmpdir/readme.md
cortex-0.1.3 spec/dummy/node_modules/os-tmpdir/readme.md
dragonfly_puppeteer-0.1.0 node_modules/os-tmpdir/readme.md
dragonfly_puppeteer-0.1.0 node_modules/fsevents/node_modules/os-tmpdir/readme.md
affiliator-0.2.1 node_modules/os-tmpdir/readme.md
affiliator-0.2.1 node_modules/fsevents/node_modules/os-tmpdir/readme.md
lanes-0.8.0 node_modules/os-tmpdir/readme.md