Package Exports
- unixify
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (unixify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
unixify 
Convert Windows file paths to Unix-like paths (
/
)
Install with npm
npm i unixify --save
Usage
var unixify = require('unixify');
unixify('one\\two\\three');
//=> 'one/two/three'
unixify('F:\\one\\two\\three');
//=> '/one/two/three'
unixify('F:\\//one\\two\\three');
//=> '//one/two/three'
unixify('F:\\//one\\two\\three');
//=> '//one/two/three'
unixify('one\\two\\//three');
//=> 'one/two/three'
unixify('C:\\//one\\two\\//three');
//=> '//one/two/three'
Run tests
Install dev dependencies:
node i -d && mocha
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert
Released under the MIT license
This file was generated by verb on December 22, 2014.