{"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":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"2fdd8ce252e1a7ff087e577015b7f610dc7853ec","tarball":"http://registry-npm.ywwl.com/unixify/download/unixify-0.1.0.tgz","integrity":"sha512-Dhoa+ltSpY8TAQGenkOHb98YRQLTnXIhY4cx7Qy64RT30GQbVDCTuvdeNCFfHeAhbfjIBSAsus0h5JiBCl6wDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLeTcms3vQEQLiel2hudXy6WUmmo4raqx/6L01HSU2IgIgKuqpIAFSBCmJLjEFUIAEpDrCGh455fV0yMGR+24Hpcw="}],"size":2717,"noattachment":false,"key":"/unixify/-/unixify-0.1.0.tgz"},"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":1419293118843,"_cnpm_publish_time":1419293118843,"dist-tags":{"latest":"1.0.0"}}