jawira/case-converter

View on GitHub
docs/images/railroad.js

Summary

Maintainability
A
0 mins
Test Coverage
// https://tabatkins.github.io/railroad-diagrams/generator.html
Diagram(
  Choice(0,
    Sequence(
      Optional('->forceSimpleCaseMapping()', 'skip'),
      Choice(7,
        '->fromAda()',
        '->fromAuto()',
        '->fromCamel()',
        '->fromCobol()',
        '->fromDot()',
        '->fromKebab()',
        '->fromLower()',
        Skip(),
        '->fromMacro()',
        '->fromPascal()',
        '->fromSentence()',
        '->fromSnake()',
        '->fromTitle()',
        '->fromTrain()',
        '->fromUpper()'
      ),
      Choice(7,
        '->toAda()',
        '->toArray()',
        '->toCamel()',
        '->toCobol()',
        '->toDot()',
        '->toKebab()',
        '->toLower()',
        '->toMacro()',
        '->toPascal()',
        '->toSentence()',
        '->toSnake()',
        '->toTitle()',
        '->toTrain()',
        '->toUpper()'
      )
    ),
    '->getSource()'
  )
);