mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 13:13:37 +08:00
Change-Id: I3fcf49bc416301a030d298cfc48c448bfeba4335 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1878808 Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Paul Lewis <aerotwist@chromium.org>
os-tmpdir 
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