JSPM

unixify

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3971524
  • Score
    100M100P100Q200564F
  • License

Convert Windows file paths to Unix-like paths (`/`)

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 NPM version

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.