Skip to content

Commit

Permalink
add why section
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVerschueren committed May 27, 2017
1 parent 43d5a89 commit 3f86a3e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
> A better [decodeURIComponent](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent)

## Why?

- Decodes `+` to a space.
- Converts the [BOM](https://en.wikipedia.org/wiki/Byte_order_mark) to a [replacement character](https://en.wikipedia.org/wiki/Specials_(Unicode_block)#Replacement_character) ``.
- Does not throw with invalid encoded input.
- Decodes as much of the string as possible.


## Install

```
Expand Down

0 comments on commit 3f86a3e

Please sign in to comment.