No Purchase Made

    unwin

    1.0.2 • Public • Published

    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'
    

    Install

    npm i unwin

    DownloadsWeekly Downloads

    1,729

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • mwolson