node/tools/eslint/node_modules/os-tmpdir
cjihrig ba73a67d45 tools: update to ESLint 4.10.0
PR-URL: https://github.com/nodejs/node/pull/16738
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
2017-12-13 16:59:02 +00:00
..
index.js tools: update ESLint to v4.0.0 2017-06-21 22:43:32 +02:00
license tools: update ESLint to v4.0.0 2017-06-21 22:43:32 +02:00
package.json tools: update to ESLint 4.10.0 2017-12-13 16:59:02 +00:00
readme.md tools: update ESLint to v4.0.0 2017-06-21 22:43:32 +02:00

os-tmpdir Build Status

Node.js os.tmpdir() ponyfill

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

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

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

API

See the os.tmpdir() docs.

License

MIT © Sindre Sorhus