akamai-edgescape-parser

A utility that parses an Akamai Edgescape string into a key/value pair object

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
akamai-edgescape-parser
201.0.37 years ago7 years agoMinified + gzip package size for akamai-edgescape-parser in KB

Readme

Akamai Edgescape Header Parser
Build Status
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'
}
*/