node/deps/npm/node_modules/osenv/node_modules/os-tmpdir
Rebecca Turner 507fc53e37 deps: upgrade npm to 3.3.10
PR-URL: https://github.com/nodejs/node/pull/3599
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2015-11-02 14:25:04 -05:00
..
index.js deps: upgrade npm to 3.3.10 2015-11-02 14:25:04 -05:00
license deps: upgrade npm to 3.3.10 2015-11-02 14:25:04 -05:00
package.json deps: upgrade npm to 3.3.10 2015-11-02 14:25:04 -05:00
readme.md deps: upgrade npm to 3.3.10 2015-11-02 14:25:04 -05:00

os-tmpdir Build Status

Node.js os.tmpdir() ponyfill

Ponyfill: A polyfill that doesn't overwrite the native method

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

This is actually taken from io.js 2.0.2 as it contains some fixes that haven't bubbled up to Node.js yet.

Install

$ npm install --save os-tmpdir

Usage

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

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

API

See the os.tmpdir() docs.

License

MIT © Sindre Sorhus