UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

102 lines (101 loc) 3.36 kB
{ "_args": [ [ { "raw": "path-absolute@1.0.0", "scope": null, "escapedName": "path-absolute", "name": "path-absolute", "rawSpec": "1.0.0", "spec": "1.0.0", "type": "version" }, "/home/zkochan/src/pnpm/packages/pnpm" ] ], "_from": "path-absolute@1.0.0", "_id": "path-absolute@1.0.0", "_inCache": true, "_location": "/path-absolute", "_nodeVersion": "6.9.1", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/path-absolute-1.0.0.tgz_1505158805594_0.05922800372354686" }, "_npmUser": { "name": "zkochan", "email": "zoltan.kochan@gmail.com" }, "_npmVersion": "5.4.1", "_phantomChildren": {}, "_requested": { "raw": "path-absolute@1.0.0", "scope": null, "escapedName": "path-absolute", "name": "path-absolute", "rawSpec": "1.0.0", "spec": "1.0.0", "type": "version" }, "_requiredBy": [ "/", "/@pnpm/store-path", "/supi" ], "_resolved": "https://registry.npmjs.org/path-absolute/-/path-absolute-1.0.0.tgz", "_shasum": "acd40bc439b0987facf3cd3f37648482d2bbe3a8", "_shrinkwrap": null, "_spec": "path-absolute@1.0.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm", "author": { "name": "Zoltan Kochan" }, "bugs": { "url": "https://github.com/zkochan/path-absolute/issues" }, "dependencies": { "os-homedir": "^1.0.2" }, "description": "Resolves a path to an absolute path. Supports tilde", "devDependencies": { "standard": "^10.0.3" }, "directories": {}, "dist": { "integrity": "sha512-s0wa8oTU0s+jtq9C/xfNIRDp/8s6E2oeRvsATw1b6EZ1GNKxUCapwyBKdSzVm/2wkARh4KnyxTt3avOP4MwvnQ==", "shasum": "acd40bc439b0987facf3cd3f37648482d2bbe3a8", "tarball": "https://registry.npmjs.org/path-absolute/-/path-absolute-1.0.0.tgz" }, "files": [ "index.js", "index.d.ts" ], "gitHead": "d3dc59b3fbd8606882c83da1def850b72af1f91b", "homepage": "https://github.com/zkochan/path-absolute#readme", "keywords": [ "path", "absolute", "tilde" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "zkochan", "email": "zoltan.kochan@gmail.com" } ], "name": "path-absolute", "optionalDependencies": {}, "readme": "# path-absolute\n\n> Resolves a path to an absolute path. Supports tilde\n\n<!--@shields('npm', 'travis')-->\n[![npm version](https://img.shields.io/npm/v/path-absolute.svg)](https://www.npmjs.com/package/path-absolute) [![Build Status](https://img.shields.io/travis/zkochan/path-absolute/master.svg)](https://travis-ci.org/zkochan/path-absolute)\n<!--/@-->\n\n## Installation\n\n```sh\nnpm i -S path-absolute\n```\n\n## Usage\n\n```js\nconst pathAbsolute = require('path-absolute')\n\npathAbsolute('~/foo')\n//> '/home/zkochan/foo'\n\npathAbsolute('/foo/bar')\n//> '/foo/bar'\n\npathAbsolute('./foo/bar', '/home')\n//> '/home/foo/bar'\n```\n\n## API\n\n### `pathAbsolute(path, [cwd]): string`\n\nResolves a path to an absolute path\n\n## License\n\n[MIT](LICENSE) © [Zoltan Kochan](https://www.kochan.io/)\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/zkochan/path-absolute.git" }, "scripts": { "test": "standard" }, "typings": "index.d.ts", "version": "1.0.0" }