JSPM

key-casing

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q27452F
  • License MIT

change casing of object keys

Package Exports

  • key-casing

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (key-casing) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

key-casing

Change casing of an Object key

##Install

npm i key-casing --save

##Usage

var keyCase = require('key-casing');

var obj = { 'a': 3, 'b': 3 };

keyCase(obj);

//{ 'A': 3, 'B': 3 }

##Use Case Supports nested objects and flat objects to change casing of keys. Also, supports array detection in case the key is an array.

Currently only supports changing the first character to a capital letter.

##License MIT