"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/os-tmpdir/readme.md" (17 Oct 2016, 839 Bytes) of archive /windows/misc/atom-windows.zip:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

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.


$ npm install --save os-tmpdir


```js var osTmpdir = require(‘os-tmpdir’);

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


See the os.tmpdir() docs.


MIT © Sindre Sorhus