Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 20-Sep-2020 | - | ||||
license | H A D | 26-Oct-1985 | 1.1 KiB | 22 | 17 | |
package.json | H A D | 20-Sep-2020 | 1.5 KiB | 63 | 62 | |
readme.md | H A D | 26-Oct-1985 | 657 | 40 | 21 |
readme.md
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) 40