encode objects to uris and decode uri strings to objects
npm install --save-exact @magic-libraries/uri
in a page/component, just use the lib.uri functions'),
lib.uri.encode({
host: 'https://example.com',
params: {
param_1: true,
param_2: 'string',
},
})
// returns
'https://example.com?param_1=true¶m_2=string'
lib.uri.decode('https://example.com?param_1=true¶m_2=string')
// returns
{
host: 'https://example.com',
params: {
param_1: true,
param_2: 'string',
},
}
first release
require node 13.5.0
bump required node version
bump required node version to 14.15.4
update dependencies
...