https://github.com/ironsource/node-config-root
https://github.com/ironsource/node-config-root
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ironsource/node-config-root
- Owner: ironSource
- License: bsd-2-clause
- Created: 2016-04-14T11:18:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-06T14:55:16.000Z (about 10 years ago)
- Last Synced: 2025-02-23T04:15:18.781Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# config-root
**Exports the path to the user's config directory. Cross-platform; extracted from Yeoman's [configstore](https://www.npmjs.com/package/configstore).**
[](https://www.npmjs.org/package/config-root) [](https://www.npmjs.org/package/config-root)
## example
```js
const root = require('config-root')
// Most likely ~/.config or C:\Users\username\.config
console.log(root)
```
## install
With [npm](https://npmjs.org) do:
```
npm install config-root
```
## license
[BSD-2-Clause](https://spdx.org/licenses/BSD-2-Clause.html) © [ironSource](http://www.ironsrc.com/). [Original work](https://www.npmjs.com/package/configstore) © Google.