{"name":"env-paths","version":"2.1.0","description":"Get paths for storing things like data, config, cache, etc","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-paths.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["common","user","paths","env","environment","directory","dir","appdir","path","data","config","cache","logs","temp","linux","unix"],"devDependencies":{"ava":"^1.2.1","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"f2216b01767941174a3720f3537b78380c68d86a","bugs":{"url":"https://github.com/sindresorhus/env-paths/issues"},"homepage":"https://github.com/sindresorhus/env-paths#readme","_id":"env-paths@2.1.0","_nodeVersion":"10.15.1","_npmVersion":"6.8.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-UP0khs8YtfSoTOMiDsZMuH2nFXAF3dk2JKfkWZd5j3cRDwsUDPIaV7brRsQmclCTi/h7po/zVs+w10FgJTf9ag==","shasum":"aa0554965e8d109dd6759b90c1bd3d1cdd76d57b","tarball":"http://registry-npm.ywwl.com/env-paths/download/env-paths-2.1.0.tgz","fileCount":5,"unpackedSize":6066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfVIZCRA9TVsSAnZWagAAYEwP/0fyd0XS2HHwSWv+9hGS\nNCF4BxAJJhHcjr/NM5quohuK7SYr7eqP8FPbf94XZX37WlGjLwywQg7dZ0NY\nQGIZSavCIDrhzSs0x73vnRr3z8OA4crVHGKi/LQExARkQze7NyDYNsR1xos5\n2mIFCntP3FcaOrORk6hXKIOt2VnE1KTznRF9X4hczVE6R5oOmOsMOlW1Dq9p\n8icNhjGEJ3xe1Mg5y0iZjvR3VXOKrYopm35qlbp4S2f74lYT7zF7tG4rPXjj\nC+PrkB5qtHnEWg8RLW2+Efg+R6YxK8mT4EdzQBSBGg0m1OYWzDYcZYcVimMn\nlmfAAq6FvT5GjxYNG0HeBucsO5L3AspTiA6xMxepvzqKJsfQ547kQUtCClIU\nSGJBud334X8/P51bjSQJTIAoJQ1xq3P0euIZEqs1ELdP7XsL7tK61colQpw4\nL5ovvMWxkeE7Cp+yK9s+4QOKWdB6cy/1fvMKWs2AFnbDS2J7ZQBPvIbCZmVq\n8+4HS89SblH+NzolvpD2AD8K7HU3HfV0mNQc/pOwrmT1tB8ax/aQ0wlvPZ+6\nNthsc6LCW31sKeuxjz9qFLIh4M32xdXa6WBmjTgDxzOfGd01HFv50Inl9kEN\nPqDI1OcAL/I548ebaYB6xwBJczeSfvlR6FZMz1b651x2Mno2235McdeWo+dA\nfZvl\r\n=SGrE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCld6ymFroRsFl01/w3g/ebdzXHV4tA2ygz/No8SbVRSgIgC31baE26XAJVwOxButRzTdIZULfgCBR5w6cbBeSf7GQ="}],"size":2631,"noattachment":false,"key":"/env-paths/-/env-paths-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/env-paths_2.1.0_1551716888941_0.6816574351417073"},"_hasShrinkwrap":false,"readme":"# env-paths\n\n> Get paths for storing things like data, config, cache, etc\n\nUses the correct OS-specific paths. Most developers get this wrong.\n\n## Install\n\n```\n$ npm install env-paths\n```\n\n## Usage\n\n```js\nimport envPaths from 'env-paths';\n\nconst paths = envPaths('MyApp');\n\npaths.data;\n//=> '/home/sindresorhus/.local/share/MyApp-nodejs'\n\npaths.config\n//=> '/home/sindresorhus/.config/MyApp-nodejs'\n```\n\n## API\n\n### paths = envPaths(name, options?)\n\nNote: It only generates the path strings. It doesn't create the directories for you. You could use [`make-dir`](https://github.com/sindresorhus/make-dir) to create the directories.\n\n#### name\n\nType: `string`\n\nThe name of your project. Used to generate the paths.\n\n#### options\n\nType: `object`\n\n##### suffix\n\nType: `string`\\\nDefault: `'nodejs'`\n\n**Don't use this option unless you really have to!**\n\nSuffix appended to the project name to avoid name conflicts with native\napps. Pass an empty string to disable it.\n\n### paths.data\n\nDirectory for data files.\n\nExample locations (with the default `nodejs` [suffix](#suffix)):\n\n- macOS: `~/Library/Application Support/MyApp-nodejs`\n- Windows: `%LOCALAPPDATA%\\MyApp-nodejs\\Data` (for example, `C:\\Users\\USERNAME\\AppData\\Local\\MyApp-nodejs\\Data`)\n- Linux: `~/.local/share/MyApp-nodejs` (or `$XDG_DATA_HOME/MyApp-nodejs`)\n\n### paths.config\n\nDirectory for config files.\n\nExample locations (with the default `nodejs` [suffix](#suffix)):\n\n- macOS: `~/Library/Preferences/MyApp-nodejs`\n- Windows: `%APPDATA%\\MyApp-nodejs\\Config` (for example, `C:\\Users\\USERNAME\\AppData\\Roaming\\MyApp-nodejs\\Config`)\n- Linux: `~/.config/MyApp-nodejs` (or `$XDG_CONFIG_HOME/MyApp-nodejs`)\n\n### paths.cache\n\nDirectory for non-essential data files.\n\nExample locations (with the default `nodejs` [suffix](#suffix)):\n\n- macOS: `~/Library/Caches/MyApp-nodejs`\n- Windows: `%LOCALAPPDATA%\\MyApp-nodejs\\Cache` (for example, `C:\\Users\\USERNAME\\AppData\\Local\\MyApp-nodejs\\Cache`)\n- Linux: `~/.cache/MyApp-nodejs` (or `$XDG_CACHE_HOME/MyApp-nodejs`)\n\n### paths.log\n\nDirectory for log files.\n\nExample locations (with the default `nodejs` [suffix](#suffix)):\n\n- macOS: `~/Library/Logs/MyApp-nodejs`\n- Windows: `%LOCALAPPDATA%\\MyApp-nodejs\\Log` (for example, `C:\\Users\\USERNAME\\AppData\\Local\\MyApp-nodejs\\Log`)\n- Linux: `~/.local/state/MyApp-nodejs` (or `$XDG_STATE_HOME/MyApp-nodejs`)\n\n### paths.temp\n\nDirectory for temporary files.\n\nExample locations (with the default `nodejs` [suffix](#suffix)):\n\n- macOS: `/var/folders/jf/f2twvvvs5jl_m49tf034ffpw0000gn/T/MyApp-nodejs`\n- Windows: `%LOCALAPPDATA%\\Temp\\MyApp-nodejs` (for example, `C:\\Users\\USERNAME\\AppData\\Local\\Temp\\MyApp-nodejs`)\n- Linux: `/tmp/USERNAME/MyApp-nodejs`\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-env-paths?utm_source=npm-env-paths&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1551716889051,"_cnpm_publish_time":1551716889051,"dist-tags":{"latest":"4.0.0"}}