npm.io
1.0.1 • Published 10 years ago

encodeuricomponent-tag

Licence
ISC
Version
1.0.1
Deps
0
Vulns
0
Weekly
0
Stars
5

encodeuricomponent-tag dependencies Status

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

Keywords