{"_id":"unixify","_rev":"19437","name":"unixify","description":"Convert Windows file paths to unix paths.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:01:18.000Z","created":"2014-12-23T00:05:18.843Z","1.0.0":"2017-04-15T00:44:18.348Z","0.2.1":"2015-10-04T06:41:52.194Z","0.1.0":"2014-12-23T00:05:18.843Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unixify.git"},"versions":{"1.0.0":{"name":"unixify","description":"Convert Windows file paths to unix paths.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/unixify","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unixify.git"},"bugs":{"url":"https://github.com/jonschlinkert/unixify/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"normalize-path":"^2.1.1"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.2.0"},"keywords":["backslash","directory","file","filepath","fix","forward","fp","fs","normalize","path","slash","slashes","trailing","unix","unixify","urix","windows"],"verb":{"related":{"description":"Other useful libraries for working with paths in node.js:","list":["contains-path","ends-with","is-absolute","normalize-path","path-ends-with"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"ed571f70916a17627aa5b4e70c2698c9b7db2d55","_id":"unixify@1.0.0","_shasum":"3a641c8c2ffbce4da683a5c70f03a462940c2090","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"3a641c8c2ffbce4da683a5c70f03a462940c2090","size":2862,"noattachment":false,"key":"/unixify/-/unixify-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unixify/download/unixify-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/unixify-1.0.0.tgz_1492217057557_0.7807762280572206"},"directories":{},"publish_time":1492217058348,"_cnpm_publish_time":1492217058348,"_hasShrinkwrap":false},"0.2.1":{"name":"unixify","description":"Convert Windows file paths to unix paths.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/unixify","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unixify.git"},"bugs":{"url":"https://github.com/jonschlinkert/unixify/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"normalize-path":"^2.0.0"},"devDependencies":{"mocha":"*"},"keywords":["backslash","directory","file","filepath","fix","forward","fp","fs","normalize","path","slash","slashes","trailing","unix","urix","windows"],"verb":{"related":{"description":"Other useful libraries for working with paths in node.js:","list":["contains-path","ends-with","is-absolute","is-relative","normalize-path","parse-filepath","path-ends-with","path-segments","rewrite-ext"]}},"gitHead":"0bf22bf98dbf4c0b559bb18563ec38b1a0bbf0a6","_id":"unixify@0.2.1","_shasum":"4864303c26eccae1160d91d046f65473f022bedc","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"4864303c26eccae1160d91d046f65473f022bedc","size":2367,"noattachment":false,"key":"/unixify/-/unixify-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unixify/download/unixify-0.2.1.tgz"},"directories":{},"publish_time":1443940912194,"_cnpm_publish_time":1443940912194,"_hasShrinkwrap":false},"0.1.0":{"name":"unixify","description":"Convert Windows file paths to Unix-like paths (`/`)","version":"0.1.0","homepage":"https://github.com/jonschlinkert/unixify","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/unixify.git"},"bugs":{"url":"https://github.com/jonschlinkert/unixify/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/unixify/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["directory","file","filepath","fix","fs","path","slash","unix","windows"],"_id":"unixify@0.1.0","_shasum":"2fdd8ce252e1a7ff087e577015b7f610dc7853ec","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"2fdd8ce252e1a7ff087e577015b7f610dc7853ec","size":2717,"noattachment":false,"key":"/unixify/-/unixify-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unixify/download/unixify-0.1.0.tgz"},"directories":{},"publish_time":1419293118843,"_cnpm_publish_time":1419293118843,"_hasShrinkwrap":false}},"readme":"# unixify [![NPM version](https://img.shields.io/npm/v/unixify.svg?style=flat)](https://www.npmjs.com/package/unixify) [![NPM monthly downloads](https://img.shields.io/npm/dm/unixify.svg?style=flat)](https://npmjs.org/package/unixify) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/unixify.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/unixify)\n\n> Convert Windows file paths to unix paths.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save unixify\n```\n\nInstall with [yarn](https://yarnpkg.com):\n\n```sh\n$ yarn add unixify\n```\n\n## Usage\n\n```js\nvar unixify = require('unixify');\nunixify(filepath[, stripTrailingSlash]);\n```\n\n**Strips leading drive letters and dot-slash (`./`)**\n\n```js\nunixify('.\\\\one\\\\two\\\\three');  //=> 'one/two/three'\nunixify('./one/two/three');     //=> 'one/two/three'\nunixify('C:\\\\one\\\\two\\\\three'); //=> '/one/two/three'\nunixify('\\\\one\\\\two\\\\three');   //=> '/one/two/three'\n```\n\n**Normalizes path separators to forward slashes**\n\n```js\nunixify('one\\\\two\\\\three');      //=> 'one/two/three'\nunixify('\\\\one\\\\two\\\\three');    //=> '/one/two/three'\nunixify('C:\\\\one\\\\two\\\\three');  //=> '/one/two/three'\n```\n\n**Combines multiple consecutive slashes**\n\n```js\nunixify('one//two//////three'),     //=> 'one/two/three'\nunixify('\\\\one\\\\two\\\\//three');     //=> '/one/two/three'\nunixify('C:\\\\//one\\\\two\\\\//three'); //=> '/one/two/three'\n```\n\n**Strips trailing slashes by default**\n\n```js\nunixify('one//two//////three//'), //=> 'one/two/three'\nunixify('C:\\\\one\\\\two\\\\three\\\\'); //=> '/one/two/three'\n```\n\n**Keep trailing slashes**\n\nBy passing `false` as the second argument\n\n```js\nunixify('one//two//////three//'), //=> 'one/two/three/'\nunixify('C:\\\\one\\\\two\\\\three\\\\'); //=> '/one/two/three/'\n```\n\n## About\n\n### Related projects\n\n* [contains-path](https://www.npmjs.com/package/contains-path): Return true if a file path contains the given path. | [homepage](https://github.com/jonschlinkert/contains-path \"Return true if a file path contains the given path.\")\n* [ends-with](https://www.npmjs.com/package/ends-with): Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for… [more](https://github.com/jonschlinkert/ends-with) | [homepage](https://github.com/jonschlinkert/ends-with \"Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for comparisons.\")\n* [is-absolute](https://www.npmjs.com/package/is-absolute): Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute. | [homepage](https://github.com/jonschlinkert/is-absolute \"Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute.\")\n* [normalize-path](https://www.npmjs.com/package/normalize-path): Normalize file path slashes to be unix-like forward slashes. Also condenses repeat slashes to a… [more](https://github.com/jonschlinkert/normalize-path) | [homepage](https://github.com/jonschlinkert/normalize-path \"Normalize file path slashes to be unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes unless disabled.\")\n* [path-ends-with](https://www.npmjs.com/package/path-ends-with): Return `true` if a file path ends with the given string/suffix. | [homepage](https://github.com/jonschlinkert/path-ends-with \"Return `true` if a file path ends with the given string/suffix.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 14, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/unixify","bugs":{"url":"https://github.com/jonschlinkert/unixify/issues"},"license":"MIT"}