Skip to content

Commit 0c8023d

Browse files
authored
Update README.md
1 parent 9eac352 commit 0c8023d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,22 @@ Fun experiment to normalize URLs w/ functional programming
44
## Usage
55

66
```js
7-
const normalize = require('functional-normalize-url');
7+
const normalize = require('composable-normalize');
88

99
normalize('http://hello.com//there/../buddy/..');
10-
//=> "http://hello.com/there/buddy/"
10+
//=> 'http://hello.com/there/buddy/'
11+
12+
normalize('HTTP://www.Github.com/');
13+
//=> 'http://www.github.com/'
14+
15+
normalize('http://www.github.com/../a/b/../c/./d');
16+
// => 'http://www.github.com/a/c/d'
17+
18+
normalize('http://www.github.com:80/bar');
19+
// => 'http://www.github.com/bar'
20+
21+
normalize('http://www.github.com/%7Eusername/');
22+
// => 'http://www.github.com/~username'
1123
```
1224

1325
## Current Features

0 commit comments

Comments
 (0)