Get paths for storing things like data, config, cache, etc
import envPaths from "https://raw.githubusercontent.com/lemarier/deno-env-paths/master/mod.ts";
const paths = envPaths("MyApp");
console.log(paths.data);
//=> '/Users/david/Library/Application Support/MyApp-deno'
console.log(paths.config);
//=> '/Users/david/Library/Preferences/MyApp-deno'
Note: It only generates the path strings. It doesn't create the directories for you.
Type: string
Name of your project. Used to generate the paths.
Type: object
Type: string
Default: 'deno'
Don't use this option unless you really have to!
Suffix appended to the project name to avoid name conflicts with native
apps.
Directory for data files.
Directory for config files.
Directory for non-essential data files.
Directory for log files.
Directory for temporary files.
Inspired by env-paths from sindresorhus.