Package Exports
- unwin
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 (unwin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
unwin
Transform windows absolute paths into UNIX paths.
Install
npm install --save unwinExamples
On Windows:
> require('os').platform()
'win32'
> unwin = require('unwin');
[Function: unwin]
> unwin('c:\\')
'/'
> unwin('\\top\\test\\file1.test.js')
'/top/test/file1.test.js'On Linux:
> unwin = require('unwin');
[Function: unwin]
> unwin('c:\\')
'c:\\'
> unwin('\\top\\test\\file1.test.js')
'\\top\\test\\file1.test.js'