Logo white

judicial-hy / 0.200103

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • 0.200103
  • node_modules
  • os-tmpdir
  • readme.md
  • 初始提交
    ce4c83ff
    wxy authored
    2020-01-09 10:05:05 +0800  
    Browse Code »
readme.md 693 Bytes
Edit Raw Blame History

os-tmpdir Build Status

Node.js <code>os.tmpdir()</code> 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 <code>os.tmpdir()</code> docs.

License

MIT © Sindre Sorhus