mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 21:24:26 +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>
path-key 
Get the PATH environment variable key cross-platform
It's usually PATH, but on Windows it can be any casing like Path...
Install
$ npm install --save path-key
Usage
const pathKey = require('path-key');
const key = pathKey();
//=> 'PATH'
const PATH = process.env[key];
//=> '/usr/local/bin:/usr/bin:/bin'
API
pathKey([options])
options
env
Type: Object
Default: process.env
Use a custom environment variables object.
platform
Type: string
Default: process.platform
Get the PATH key for a specific platform.
License
MIT © Sindre Sorhus