1.0.1 • Published 7 years ago

alternating-case-to-object v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

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
    }
    
*/