path-key

WebJar for path-key

License

License

MIT
Categories

Categories

KeY Data Data Formats Formal Verification
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

path-key
Last Version

Last Version

3.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

path-key
WebJar for path-key
Project URL

Project URL

https://www.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.npm/path-key/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>path-key</artifactId>
    <version>3.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/path-key/
implementation 'org.webjars.npm:path-key:3.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/path-key/
implementation ("org.webjars.npm:path-key:3.1.1")
'org.webjars.npm:path-key:jar:3.1.1'
<dependency org="org.webjars.npm" name="path-key" rev="3.1.1">
  <artifact name="path-key" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='path-key', version='3.1.1')
)
libraryDependencies += "org.webjars.npm" % "path-key" % "3.1.1"
[org.webjars.npm/path-key "3.1.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 Build Status

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

const pathKey = require('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
3.1.1
3.1.0
2.0.1
1.0.0