1.0.12 • Published 11 months ago

@yangcurve/case v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

case

TypeScript case converter

Usage

import { to } from '@yangcurve/case'
  • to.camel
  • to.kebab
  • to.pascal
  • to.snake
  • to.upperKebab
  • to.upperSnake
const snake = to.snake('helloWorld')

type Snake = to.Snake<'helloWorld'>

const snakeObject = to.snake({
  arrayOfNumbers: [1, 2, 3],
  arrayOfObjects: [
    {
      helloWorld: 'hi',
    },
    {
      itWorks: 'great',
    },
  ],
  nestedObject: {
    a1: {
      a2: new Map(),
    },
    b1: {
      b2: new Set(),
    },
  },
})
1.0.12

11 months ago

1.0.11

12 months ago

1.0.10

12 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago

0.0.17

12 months ago

0.0.16

12 months ago

0.0.15

12 months ago

0.0.14

12 months ago

0.0.13

12 months ago

0.0.12

12 months ago

0.0.11

12 months ago

0.0.10

12 months ago

0.0.9

12 months ago

0.0.8

12 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago