1.0.1 • Published 7 years ago
alternating-case-to-object v1.0.1
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
}
*/