{"_id":"path2","_rev":"6-63dedc0aca5974f780eab455e90dc85e","name":"path2","description":"Modular and extended version of `path` package","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"path2","version":"0.1.0","description":"Modular and extended version of `path` package","keywords":["path","node","commonpath"],"repository":{"type":"git","url":"git://github.com/medikoo/path2.git"},"scripts":{"test":"node ./node_modules/tad/bin/tad"},"devDependencies":{"tad":"~0.1.20"},"license":"MIT","bugs":{"url":"https://github.com/medikoo/path2/issues"},"homepage":"https://github.com/medikoo/path2","_id":"path2@0.1.0","dist":{"shasum":"639828942cdbda44a41a45b074ae8873483b4efa","tarball":"https://registry.npmjs.org/path2/-/path2-0.1.0.tgz","integrity":"sha512-TX+cz8Jk+ta7IvRy2FAej8rdlbrP0+uBIkP/5DTODez/AuL/vSb30KuAdDxGVREXzn8QfAiu5mJYJ1XjbOhEPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAaNuqHtcZhK2w9ZxmRs2Gd3oHvue5LE9efHxF/QbWJGAiEAoUJiklhzB0XyzHFeAMLBhoIy71+vr6DFnnwLCx64JiQ="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"maintainers":[{"name":"medikoo","email":"medikoo+npm@medikoo.com"}],"directories":{}}},"readme":"# path2\n## Modular and extended version of [Node's path](http://nodejs.org/api/path.html) package\n\nWorks exactly same as Node's `path`, with following improvements:\n\n- Both _windows_ and _posix_ versions can be accessed in any environment program is run. For windows version require `path2/windows` for posix `path2/posix`.\n- Doesn't depend on existence of `process` object and can safely be used in any enviroment (e.g. browser) which does not provide it. If `process.cwd` is not accessible, _/_ or _C:\\_ (for windows) are used as current working directory \n- Each function is provided as an individual module, so only modules that are needed, can be required e.g. `path2/resolve` or specifically posix version: `path2/posix/resolve`\n\nOne additional function, not present in native `path`, is provided:\n\n### path.common(path1[, ...pathn])\n\nResolves common path for given path arguments:\n```javascript\npath.common('/lorem/ipsum/foo/bar', '/lorem/ipsum/raz/dwa',\n  '/lorem/elo/foo/bar'); //  => '/lorem'\n```\n\n`path.common` is proposed to be [included in native `path`](https://github.com/joyent/node/pull/6328)\n\n### Installation\n#### NPM\n\nIn your project path:\n\n\t$ npm install path2\n\n##### Browser\n\nYou can easily bundle _path2_ for browser with [modules-webmake](https://github.com/medikoo/modules-webmake)\n\n## Tests [![Build Status](https://travis-ci.org/medikoo/path2.png)](https://travis-ci.org/medikoo/path2)\n\n\t$ npm test\n","maintainers":[{"name":"medikoo","email":"medikoo+npm@medikoo.com"}],"time":{"modified":"2023-07-22T22:40:37.547Z","created":"2014-02-17T18:00:41.841Z","0.1.0":"2014-02-17T18:00:41.841Z"},"readmeFilename":"README.md","users":{"alfeo92":true,"flumpus-dev":true}}