String Template Format: URI
String template literal tag that converts string into valid URI/URL components
Usage
const str = 'abc/def ghi'consoleconsole
should print:
https://example.com/abc/def%20ghi
https://example.com/abc%2Fdef%20ghi
String template literal tag that converts string into valid URI/URL components
const str = 'abc/def ghi'consoleconsole
should print:
https://example.com/abc/def%20ghi
https://example.com/abc%2Fdef%20ghi
npm i string-template-format-uri
0
0.1.7
MIT
2.63 kB
5