source: trip-planner-front/node_modules/urix/readme.md@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 766 bytes
Line 
1[![Build Status](https://travis-ci.org/lydell/urix.png?branch=master)](https://travis-ci.org/lydell/urix)
2
3Overview
4========
5
6Makes Windows-style paths more unix and URI friendly. Useful if you work with
7paths that eventually will be used in URLs.
8
9```js
10var urix = require("urix")
11
12// On Windows:
13urix("c:\\users\\you\\foo")
14// /users/you/foo
15
16// On unix-like systems:
17urix("c:\\users\\you\\foo")
18// c:\users\you\foo
19```
20
21
22Installation
23============
24
25`npm install urix`
26
27```js
28var urix = require("urix")
29```
30
31
32Usage
33=====
34
35### `urix(path)` ###
36
37On Windows, replaces all backslashes with slashes and uses a slash instead of a
38drive letter and a colon for absolute paths.
39
40On unix-like systems it is a no-op.
41
42
43License
44=======
45
46[The X11 (“MIT”) License](LICENSE).
Note: See TracBrowser for help on using the repository browser.