Skip to content

Finds and creates a config folder for your app. The path is OS specific.

Notifications You must be signed in to change notification settings

pstaender/user-config-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Finds and creates a config folder for your app. The path is OS specific.

Resources

Stars

Watchers

Forks

Packages

No packages published