path-key

WebJar for path-key

License

License

MIT
Categories

Categories

KeY Data Data Formats Formal Verification
GroupId

GroupId

org.webjars.bowergithub.sindresorhus
ArtifactId

ArtifactId

path-key
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

path-key
WebJar for path-key
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/path-key

Download path-key

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.sindresorhus/path-key/ -->
<dependency>
    <groupId>org.webjars.bowergithub.sindresorhus</groupId>
    <artifactId>path-key</artifactId>
    <version>2.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.sindresorhus/path-key/
implementation 'org.webjars.bowergithub.sindresorhus:path-key:2.0.1'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.sindresorhus/path-key/
implementation ("org.webjars.bowergithub.sindresorhus:path-key:2.0.1")
'org.webjars.bowergithub.sindresorhus:path-key:jar:2.0.1'
<dependency org="org.webjars.bowergithub.sindresorhus" name="path-key" rev="2.0.1">
  <artifact name="path-key" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.sindresorhus', module='path-key', version='2.0.1')
)
libraryDependencies += "org.webjars.bowergithub.sindresorhus" % "path-key" % "2.0.1"
[org.webjars.bowergithub.sindresorhus/path-key "2.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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 path-key

Usage

import pathKey from 'path-key';

const key = pathKey();
//=> 'PATH'

const PATH = process.env[key];
//=> '/usr/local/bin:/usr/bin:/bin'

API

pathKey(options?)

options

Type: object

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.


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
2.0.1