{"_id":"urix","_rev":"19159","name":"urix","description":"Makes Windows-style paths more unix and URI friendly.","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"lydell","email":""}],"time":{"modified":"2023-09-20T22:03:16.000Z","created":"2014-03-01T21:02:32.481Z","0.1.0":"2014-03-01T21:02:32.481Z"},"users":{},"author":{"name":"Simon Lydell"},"repository":{"type":"git","url":"git://github.com/lydell/urix"},"versions":{"0.1.0":{"name":"urix","version":"0.1.0","author":{"name":"Simon Lydell"},"license":"MIT","description":"Makes Windows-style paths more unix and URI friendly.","main":"index.js","repository":{"type":"git","url":"git://github.com/lydell/urix"},"keywords":["path","url","uri","unix","windows","backslash","slash"],"scripts":{"test":"jshint index.js test/ && mocha"},"devDependencies":{"mocha":"^1.17.1","jshint":"^2.4.4"},"bugs":{"url":"https://github.com/lydell/urix/issues"},"homepage":"https://github.com/lydell/urix","_id":"urix@0.1.0","dist":{"shasum":"da937f7a62e21fec1fd18d49b35c2935067a6c72","size":2211,"noattachment":false,"key":"/urix/-/urix-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/urix/download/urix-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"lydell","email":"simon.lydell@gmail.com"},"maintainers":[{"name":"lydell","email":""}],"directories":{},"publish_time":1393707752481,"_cnpm_publish_time":1393707752481,"_hasShrinkwrap":false,"deprecated":"Please see https://github.com/lydell/urix#deprecated"}},"readme":"[![Build Status](https://travis-ci.org/lydell/urix.png?branch=master)](https://travis-ci.org/lydell/urix)\r\n\r\nOverview\r\n========\r\n\r\nMakes Windows-style paths more unix and URI friendly. Useful if you work with\r\npaths that eventually will be used in URLs.\r\n\r\n```js\r\nvar urix = require(\"urix\")\r\n\r\n// On Windows:\r\nurix(\"c:\\\\users\\\\you\\\\foo\")\r\n// /users/you/foo\r\n\r\n// On unix-like systems:\r\nurix(\"c:\\\\users\\\\you\\\\foo\")\r\n// c:\\users\\you\\foo\r\n```\r\n\r\n\r\nInstallation\r\n============\r\n\r\n`npm install urix`\r\n\r\n```js\r\nvar urix = require(\"urix\")\r\n```\r\n\r\n\r\nUsage\r\n=====\r\n\r\n### `urix(path)` ###\r\n\r\nOn Windows, replaces all backslashes with slashes and uses a slash instead of a\r\ndrive letter and a colon for absolute paths.\r\n\r\nOn unix-like systems it is a no-op.\r\n\r\n\r\nLicense\r\n=======\r\n\r\n[The X11 (“MIT”) License](LICENSE).\r\n","_attachments":{},"homepage":"https://github.com/lydell/urix","bugs":{"url":"https://github.com/lydell/urix/issues"},"license":"MIT"}