UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

111 lines (110 loc) 4.29 kB
{ "_args": [ [ { "raw": "xdg-basedir@^3.0.0", "scope": null, "escapedName": "xdg-basedir", "name": "xdg-basedir", "rawSpec": "^3.0.0", "spec": ">=3.0.0 <4.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/update-notifier" ] ], "_from": "xdg-basedir@>=3.0.0 <4.0.0", "_id": "xdg-basedir@3.0.0", "_inCache": true, "_location": "/xdg-basedir", "_nodeVersion": "4.6.2", "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/xdg-basedir-3.0.0.tgz_1486978344594_0.5195651547983289" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "2.15.11", "_phantomChildren": {}, "_requested": { "raw": "xdg-basedir@^3.0.0", "scope": null, "escapedName": "xdg-basedir", "name": "xdg-basedir", "rawSpec": "^3.0.0", "spec": ">=3.0.0 <4.0.0", "type": "range" }, "_requiredBy": [ "/configstore", "/update-notifier" ], "_resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz", "_shasum": "496b2cc109eca8dbacfe2dc72b603c17c5870ad4", "_shrinkwrap": null, "_spec": "xdg-basedir@^3.0.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/update-notifier", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/xdg-basedir/issues" }, "dependencies": {}, "description": "Get XDG Base Directory paths", "devDependencies": { "ava": "*", "require-uncached": "^1.0.2", "xo": "*" }, "directories": {}, "dist": { "shasum": "496b2cc109eca8dbacfe2dc72b603c17c5870ad4", "tarball": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz" }, "engines": { "node": ">=4" }, "files": [ "index.js" ], "gitHead": "d441833e9dad9694b04495905ab8fe484e3b8b99", "homepage": "https://github.com/sindresorhus/xdg-basedir#readme", "keywords": [ "xdg", "base", "directory", "dir", "basedir", "path", "data", "config", "cache", "linux", "unix", "spec" ], "license": "MIT", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "xdg-basedir", "optionalDependencies": {}, "readme": "# xdg-basedir [![Build Status](https://travis-ci.org/sindresorhus/xdg-basedir.svg?branch=master)](https://travis-ci.org/sindresorhus/xdg-basedir)\n\n> Get [XDG Base Directory](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) paths\n\n\n## Install\n\n```\n$ npm install --save xdg-basedir\n```\n\n\n## Usage\n\n```js\nconst xdgBasedir = require('xdg-basedir');\n\nxdgBasedir.data;\n//=> '/home/sindresorhus/.local/share'\n\nxdgBasedir.config;\n//=> '/home/sindresorhus/.config'\n\nxdgBasedir.dataDirs\n//=> ['/home/sindresorhus/.local/share', '/usr/local/share/', '/usr/share/']\n```\n\n\n## API\n\nThe properties `.data`, `.config`, `.cache`, `.runtime` will return `null` in the uncommon case that both the XDG environment variable is not set and the users home directory can't be found. You need to handle this case. A common solution is to [fall back to a temp directory](https://github.com/yeoman/configstore/blob/b82690fc401318ad18dcd7d151a0003a4898a314/index.js#L15).\n\n### .data\n\nDirectory for user specific data files.\n\n### .config\n\nDirectory for user specific configuration files.\n\n### .cache\n\nDirectory for user specific non-essential data files.\n\n### .runtime\n\nDirectory for user-specific non-essential runtime files and other file objects (such as sockets, named pipes, etc).\n\n### .dataDirs\n\nPreference-ordered array of base directories to search for data files in addition to `.data`.\n\n### .configDirs\n\nPreference-ordered array of base directories to search for configuration files in addition to `.config`.\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/xdg-basedir.git" }, "scripts": { "test": "xo && ava" }, "version": "3.0.0" }