AppData Path
Installation
npm install -S appdata-path
Usage
import getAppDataPath from "appdata-path";
console.log(getAppDataPath());
console.log(getAppDataPath("my-app"));
API
getAppDataPath(app?: string): string
Returns the absolute system-dependant path for the place where applications
should store their data for the current user.
If you pass the name of your app directory or file as an argument,
it will return the absolute path for the place where you should store the
data of your application. It will prefix you file / directory name by a dot
if the AppData directory happens to also be the user's home, otherwise it
will just use it as is. See the examples above.
Changelog
See CHANGELOG.md.
License
See LICENSE.md.