akamai-edgescape-parser
v1.0.3
Published
A utility that parses an Akamai Edgescape string into a key/value pair object
Downloads
3,631
Maintainers
Readme
Akamai Edgescape Header Parser
A utility that parses an Akamai Edgescape string into a key/value pair object. Designed for Node, but can also be used in the browser via Browserify.
Usage
var akamaiEdgescapeParser = require('akamai-edgescape-parser');
var exampleEdgescapeString = 'city=Bainbridge Island,state=WA,zip=98110';
var keyValuePairs = akamaiEdgescapeParser(exampleEdgescapeString);
console.log('keyValuePairs:', keyValuePairs);
/* outputs
{
city: 'Bainbridge Island',
state: 'WA',
zip: '98110'
}
*/