1.0.0 • Published 2 years ago
user-config-path v1.0.0
User Config Path
Finds and creates (if not existing) a config folder for your app. The path is OS specific.
It has no dependencies.
Usage
import { findOrCreateConfigFolder } from 'user-config-path';
let configPath = await findOrCreateConfigFolder('MyAppName');
// configPath -> `/Users/username/Library/Preferences/MyAppName`
Supported OS
See also package.json
:
- macOS
- Windows
- Linux
If your are missing an OS, please open a PR with a confirmation that this module works as expected on the desired OS.
License
MIT
1.0.0
2 years ago