os-tmpdir

Node.js os.tmpdir() ponyfill

This is not needed anymore. `require('os').tmpdir()` in Node.js 4 and up is good.
Last updated 2 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install os-tmpdir 
SYNC missed versions from official npm registry.

Deprecated: This is not needed anymore. require('os').tmpdir() in Node.js 4 and up is good.


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

Current Tags

  • 2.0.0                                ...           latest (2 years ago)

4 Versions

  • 2.0.0 [deprecated]           ...           2 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 23,428
This Week 57,293
This Month 183,319
Last Day 33,865
Last Week 195,175
Last Month 809,450
Dependencies (0)
None
Dev Dependencies (2)
Dependents (179)

Copyright 2014 - 2016 © taobao.org |