UNPKG

657 BMarkdownView Raw
1# strict-uri-encode [![Build Status](https://travis-ci.org/kevva/strict-uri-encode.svg?branch=master)](https://travis-ci.org/kevva/strict-uri-encode)
2
3> A stricter URI encode adhering to [RFC 3986](http://tools.ietf.org/html/rfc3986)
4
5
6## Install
7
8```
9$ npm install --save strict-uri-encode
10```
11
12
13## Usage
14
15```js
16const strictUriEncode = require('strict-uri-encode');
17
18strictUriEncode('unicorn!foobar');
19//=> 'unicorn%21foobar'
20
21strictUriEncode('unicorn*foobar');
22//=> 'unicorn%2Afoobar'
23```
24
25
26## API
27
28### strictUriEncode(string)
29
30#### string
31
32Type: `string`, `number`
33
34String to URI encode.
35
36
37## License
38
39MIT © [Kevin Mårtensson](http://github.com/kevva)