alternating-case-to-object
v1.0.1
Published
Convert an alternating case string to a JSON object
Downloads
6
Readme
Alternating Case to Object
A function to convert ALTERNATINGcase strings to objects.
Usage
const alternatingCaseToObject = require('alternating-case-to-object');
const config = alternatingCaseToObject('KEYvalueSECONDthingALLOWEDyesTHINGS100');
/*
config is
{
key: 'value',
second: 'thing',
allowed: true,
things: 100
}
*/