]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/osenv/node_modules/os-tmpdir/readme.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / osenv / node_modules / os-tmpdir / readme.md
1 # os-tmpdir [![Build Status](https://travis-ci.org/sindresorhus/os-tmpdir.svg?branch=master)](https://travis-ci.org/sindresorhus/os-tmpdir)
2
3 > Node.js [`os.tmpdir()`](https://nodejs.org/api/os.html#os_os_tmpdir) ponyfill
4
5 > Ponyfill: A polyfill that doesn't overwrite the native method
6
7 Use this instead of `require('os').tmpdir()` to get a consistent behaviour on different Node.js versions (even 0.8).
8
9 *This is actually taken from io.js 2.0.2 as it contains some fixes that haven't bubbled up to Node.js yet.*
10
11
12 ## Install
13
14 ```
15 $ npm install --save os-tmpdir
16 ```
17
18
19 ## Usage
20
21 ```js
22 var osTmpdir = require('os-tmpdir');
23
24 osTmpdir();
25 //=> /var/folders/m3/5574nnhn0yj488ccryqr7tc80000gn/T
26 ```
27
28
29 ## API
30
31 See the [`os.tmpdir()` docs](https://nodejs.org/api/os.html#os_os_tmpdir).
32
33
34 ## License
35
36 MIT © [Sindre Sorhus](http://sindresorhus.com)