1.0.2 • Published 8 years ago

unwin v1.0.2

Weekly downloads
1,654
License
MIT
Repository
github
Last release
8 years ago

unwin

Transform windows absolute paths into UNIX paths.

NPM

Install

npm install --save unwin

Examples

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'
1.0.2

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago