Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
693 bytes
|
Line | |
---|
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](https://ponyfill.com)
|
---|
4 |
|
---|
5 | Use this instead of `require('os').tmpdir()` to get a consistent behavior on different Node.js versions (even 0.8).
|
---|
6 |
|
---|
7 |
|
---|
8 | ## Install
|
---|
9 |
|
---|
10 | ```
|
---|
11 | $ npm install --save os-tmpdir
|
---|
12 | ```
|
---|
13 |
|
---|
14 |
|
---|
15 | ## Usage
|
---|
16 |
|
---|
17 | ```js
|
---|
18 | const osTmpdir = require('os-tmpdir');
|
---|
19 |
|
---|
20 | osTmpdir();
|
---|
21 | //=> '/var/folders/m3/5574nnhn0yj488ccryqr7tc80000gn/T'
|
---|
22 | ```
|
---|
23 |
|
---|
24 |
|
---|
25 | ## API
|
---|
26 |
|
---|
27 | See the [`os.tmpdir()` docs](https://nodejs.org/api/os.html#os_os_tmpdir).
|
---|
28 |
|
---|
29 |
|
---|
30 | ## License
|
---|
31 |
|
---|
32 | MIT © [Sindre Sorhus](https://sindresorhus.com)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.