user-config-path

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i user-config-path

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.87 kB

Total Files

5

Last publish

Collaborators

  • pstaender