UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

117 lines (116 loc) 4.63 kB
{ "_args": [ [ { "raw": "next-path@^1.0.0", "scope": null, "escapedName": "next-path", "name": "next-path", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/root-link-target" ] ], "_from": "next-path@>=1.0.0 <2.0.0", "_id": "next-path@1.0.0", "_inCache": true, "_location": "/next-path", "_nodeVersion": "7.4.0", "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/next-path-1.0.0.tgz_1486285641953_0.32420410867780447" }, "_npmUser": { "name": "sholladay", "email": "me@seth-holladay.com" }, "_npmVersion": "4.1.2", "_phantomChildren": {}, "_requested": { "raw": "next-path@^1.0.0", "scope": null, "escapedName": "next-path", "name": "next-path", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "_requiredBy": [ "/root-link-target" ], "_resolved": "https://registry.npmjs.org/next-path/-/next-path-1.0.0.tgz", "_shasum": "822c4580d7abe783df19965b789622ca801603e4", "_shrinkwrap": null, "_spec": "next-path@^1.0.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/root-link-target", "author": { "name": "Seth Holladay", "email": "me@seth-holladay.com", "url": "http://seth-holladay.com" }, "bugs": { "url": "https://github.com/sholladay/next-path/issues", "email": "me@seth-holladay.com" }, "dependencies": {}, "description": "One step closer to your destination.", "devDependencies": { "ava": "^0.18.1", "eslint-config-tidy": "^0.4.1", "xo": "^0.17.1" }, "directories": {}, "dist": { "shasum": "822c4580d7abe783df19965b789622ca801603e4", "tarball": "https://registry.npmjs.org/next-path/-/next-path-1.0.0.tgz" }, "engines": { "node": ">=6" }, "files": [ "index.js" ], "gitHead": "ce2c1386836339bc473b76c9888947899ead8d56", "homepage": "https://github.com/sholladay/next-path", "keywords": [ "add", "concat", "next", "path", "paths", "segment", "component", "resolve", "distance", "between", "relative", "dir", "directory", "file" ], "license": "MPL-2.0", "main": "index.js", "maintainers": [ { "name": "sholladay", "email": "me@seth-holladay.com" } ], "name": "next-path", "optionalDependencies": {}, "readme": "# next-path [![Build status for next-path on Circle CI.](https://img.shields.io/circleci/project/sholladay/next-path/master.svg \"Circle Build Status\")](https://circleci.com/gh/sholladay/next-path \"Next Path Builds\")\n\n> One step closer to your destination.\n\nLike an incremental [`path.relative()`](https://nodejs.org/api/path.html#path_path_relative_from_to \"Compute the path from one place to another.\").\n\n## Why?\n\n - Walk the file system without messy state.\n - Works well with functional programming styles.\n - Flexible about user input.\n\n## Install\n\n```sh\nnpm install next-path --save\n```\n\n## Usage\n\nGet it into your program.\n\n```js\nconst nextPath = require('next-path');\n```\n\nDetermine the next path, one step closer to the destination.\n\n```js\nconsole.log(nextPath('a', 'a/b/c')); // => 'a/b'\nconsole.log(nextPath('../', '../../../')); // => '../..'\n```\n\n## API\n\n### nextPath(from, to)\n\n#### from\n\nType: `string`\n\nThe base path that both `to` and the result will be relative to.\n\n#### to\n\nType: `string`\n\nThe path you want to move one step closer to.\n\n## Contributing\n\nSee our [contributing guidelines](https://github.com/sholladay/next-path/blob/master/CONTRIBUTING.md \"The guidelines for participating in this project.\") for more details.\n\n1. [Fork it](https://github.com/sholladay/next-path/fork).\n2. Make a feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. [Submit a pull request](https://github.com/sholladay/next-path/compare \"Submit code to this project for review.\").\n\n## License\n\n[MPL-2.0](https://github.com/sholladay/next-path/blob/master/LICENSE \"The license for next-path.\") © [Seth Holladay](http://seth-holladay.com \"Author of next-path.\")\n\nGo make something, dang it.\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+ssh://git@github.com/sholladay/next-path.git" }, "scripts": { "test": "xo && ava" }, "version": "1.0.0", "xo": { "extend": "tidy" } }