Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
index.js | D | 12-May-2024 | 138 | 3 | 2 | |
license | D | 12-May-2024 | 1.1 KiB | 22 | 17 | |
package.json | D | 12-May-2024 | 1.5 KiB | 64 | 63 | |
readme.md | D | 12-May-2024 | 657 | 40 | 21 |
readme.md
1# strict-uri-encode [](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