Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zkochan/path-name

Cross-platform PATH env name
https://github.com/zkochan/path-name

Last synced: 3 months ago
JSON representation

Cross-platform PATH env name

Awesome Lists containing this project

README

        

# path-name

> Cross-platform PATH env name

[![npm version](https://img.shields.io/npm/v/path-name.svg)](https://www.npmjs.com/package/path-name) [![Build Status](https://img.shields.io/travis/zkochan/path-name/master.svg)](https://travis-ci.org/zkochan/path-name)

The PATH environment variable name is different on different operating systems. This package will return the variable name on the current system.

## Installation

```sh
npm i -S path-name
```

## Example

```js
const PATH = require('path-name')

// On Linux and OSX
console.log(PATH)
// > PATH

// On Windows (usually, not allways)
console.log(PATH)
// > Path
```

## License

[MIT](./LICENSE) © Zoltan Kochan