Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zkochan/path-name
- Owner: zkochan
- License: mit
- Created: 2016-10-20T06:41:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-06T20:07:32.000Z (over 7 years ago)
- Last Synced: 2024-04-26T10:21:20.036Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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