{"_id":"canonical-path","_rev":"3175289","name":"canonical-path","description":"paths that always use forward slashes","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"petebd","email":""}],"time":{"modified":"2023-12-06T08:32:52.000Z","created":"2013-12-19T21:22:50.899Z","1.0.0":"2018-10-24T11:48:16.823Z","0.0.2":"2013-12-19T21:28:57.913Z","0.0.1":"2013-12-19T21:22:50.899Z"},"users":{},"author":{"name":"Pete Bacon Darwin"},"repository":{"type":"git","url":"git+https://github.com/petebacondarwin/node-canonical-path.git"},"versions":{"1.0.0":{"name":"canonical-path","version":"1.0.0","description":"paths that always use forward slashes","main":"index.js","typings":"index.d.ts","scripts":{"test":"jasmine index.spec.js"},"repository":{"type":"git","url":"git+https://github.com/petebacondarwin/node-canonical-path.git"},"keywords":["path","forward","slashes","OS","windows"],"author":{"name":"Pete Bacon Darwin"},"license":"MIT","devDependencies":{"jasmine":"^3.2.0"},"gitHead":"7e3a6a16834027226f886d59e4b11c499f494ea6","bugs":{"url":"https://github.com/petebacondarwin/node-canonical-path/issues"},"homepage":"https://github.com/petebacondarwin/node-canonical-path#readme","_id":"canonical-path@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"petebd","email":"pete@bacondarwin.com"},"dist":{"shasum":"fcb470c23958def85081856be7a86e904f180d1d","size":5183,"noattachment":false,"key":"/canonical-path/-/canonical-path-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/canonical-path/download/canonical-path-1.0.0.tgz"},"maintainers":[{"name":"petebd","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/canonical-path_1.0.0_1540381696648_0.6096239253328559"},"_hasShrinkwrap":false,"publish_time":1540381696823,"_cnpm_publish_time":1540381696823,"_cnpmcore_publish_time":"2021-12-16T16:42:18.209Z"},"0.0.2":{"name":"canonical-path","version":"0.0.2","description":"paths that always use forward slashes","main":"index.js","scripts":{"test":"jasmine-node index.spec.js"},"repository":{"type":"git","url":"https://github.com/petebacondarwin/node-canonical-path"},"keywords":["path","forward","slashes","OS"],"author":{"name":"Pete Bacon Darwin"},"license":"MIT","devDependencies":{"jasmine-node":"~1.12.0"},"readmeFilename":"README.md","_id":"canonical-path@0.0.2","dist":{"shasum":"e31eb937a8c93ee2a01df1839794721902874574","size":1307,"noattachment":false,"key":"/canonical-path/-/canonical-path-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/canonical-path/download/canonical-path-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"petebd","email":"pete@bacondarwin.com"},"maintainers":[{"name":"petebd","email":""}],"directories":{},"publish_time":1387488537913,"_hasShrinkwrap":false,"_cnpm_publish_time":1387488537913,"_cnpmcore_publish_time":"2021-12-16T16:42:18.449Z"},"0.0.1":{"name":"canonical-path","version":"0.0.1","description":"paths that always use forward slashes","main":"index.js","scripts":{"test":"jasmine-node index.spec.js"},"repository":{"type":"git","url":"https://github.com/petebacondarwin/node-canonical-path"},"keywords":["path","forward","slashes","OS"],"author":{"name":"Pete Bacon Darwin"},"license":"MIT","devDependencies":{"jasmine-node":"~1.12.0"},"readmeFilename":"README.md","_id":"canonical-path@0.0.1","dist":{"shasum":"71e02cc63614a80aeb148778306834c5d583360f","size":1268,"noattachment":false,"key":"/canonical-path/-/canonical-path-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/canonical-path/download/canonical-path-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"petebd","email":"pete@bacondarwin.com"},"maintainers":[{"name":"petebd","email":""}],"directories":{},"publish_time":1387488170899,"_hasShrinkwrap":false,"_cnpm_publish_time":1387488170899,"_cnpmcore_publish_time":"2021-12-16T16:42:18.667Z"}},"readme":"# Canonical Path Utility\n\nWhen writing node.js code that must support Windows and *nix OSes, it is sometimes frustrating\nthat path segments are separated differently depending upon the environment.\n\nIronically, we can pass in paths with either separator and the library will normalize it to the\ncurrent OS's format. But it then returns paths using the current OS's separator.\n\nThis utility simple wraps the built-in `path` library such that it only ever returns path segments\nseparated by forward slashes (/).\n\n## Installation\n\n```\nnpm install --save canonical-path\n```\n\n## Usage\n\n```\nvar path = require('canonical-path');\n\nvar p = path.normalize('a/b/../c');\n// p === 'a/c';\n```\n\n## Testing\n\n```\nnpm test\n``` ","_attachments":{},"homepage":"https://github.com/petebacondarwin/node-canonical-path#readme","bugs":{"url":"https://github.com/petebacondarwin/node-canonical-path/issues"},"license":"MIT"}