obj-urlencode
v1.0.0
Published
A utility to encode or decode object value recursively.
Downloads
1
Readme
obj-urlencode
A utility to encode or decode object value recursively.
import urlencode from 'obj-urlencode'
let data = urlencode.encode( { a: '#123'} )
// { a: '%23123' }
console.log( urlencode.decode(data) )
// { a: '#123' }
Methods
encode(obj)
| param | type | | --------- | ------------ | | obj |
Object
(required) |decode(obj)
| param | type | | --------- | ------------ | | obj |
Object
(required) |