{"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":"jonschlinkert","email":"github@sellside.com"},{"name":"doowb","email":"brian.woodward@gmail.com"}],"dist":{"shasum":"3a641c8c2ffbce4da683a5c70f03a462940c2090","tarball":"http://registry-npm.ywwl.com/unixify/download/unixify-1.0.0.tgz","integrity":"sha512-6bc58dPYhCMHHuwxldQxO3RRNZ4eCogZ/st++0+fcC1nr0jiGUtAdBJ2qzmLQWSxbtz42pWt4QQMiZ9HvZf5cg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHGEbRSbYzgtB4GeBQ0p7hs5tsaNML9R8u2ySl/PSs4QAiEAx+jSPME+psPFgilUFpiJRrdH5JG6zX9I4gcQQhEveDY="}],"size":2862,"noattachment":false,"key":"/unixify/-/unixify-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/unixify-1.0.0.tgz_1492217057557_0.7807762280572206"},"directories":{},"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._","publish_time":1492217058348,"_cnpm_publish_time":1492217058348,"dist-tags":{"latest":"1.0.0"}}