1.0.12 • Published 9 months ago

@yangcurve/case v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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

9 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.0.17

10 months ago

0.0.16

10 months ago

0.0.15

10 months ago

0.0.14

10 months ago

0.0.13

10 months ago

0.0.12

10 months ago

0.0.11

10 months ago

0.0.10

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago