JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q26243F
  • License ISC

Package Exports

  • case-formatter

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 (case-formatter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

case-formatter-js

Simple converter from case to case for string and object. It can canvert below cases each other.

  • camel
  • snake
  • kebab
  • pascal

Usage

import caseFormatter from 'case-formatter';

caseFormatter.snakeToCamel('sample_text');
// => sampleText
caseFormatter.snakeToCamel({ sample_text: 123 });
// => { sampleText: 123 }

Formatters

  • camelToSnake
  • camelToPascal
  • camelToKebab
  • snakeToCamel
  • snakeToPascal
  • snakeToKebab
  • pascalToCamel
  • pascalToSnake
  • pascalToKebab
  • kebabToCamel
  • kebabToSnake
  • kebabToPascal