mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
…
|
||
---|---|---|
.. | ||
index.js | ||
license | ||
package.json | ||
readme.md |
strict-uri-encode
A stricter URI encode adhering to RFC 3986
Install
$ npm install --save strict-uri-encode
Usage
const strictUriEncode = require('strict-uri-encode');
strictUriEncode('unicorn!foobar');
//=> 'unicorn%21foobar'
strictUriEncode('unicorn*foobar');
//=> 'unicorn%2Afoobar'
API
strictUriEncode(string)
string
Type: string
, number
String to URI encode.
License
MIT © Kevin Mårtensson