encodeuricomponent-tag
v1.0.1
Published
Template literal tag for encoding URI component values
Downloads
115
Maintainers
Readme
encodeuricomponent-tag
Template literal tag for encoding URI component values.
Example
const uri = require('encodeuricomponent-tag')
console.log(uri`/category/${'big horses'}?q=${'saddles & bears'}`)
// Output: /category/big%20horses?q=saddles%20%26%20bears