Socket
Book a DemoInstallSign in
Socket

kase

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kase

Small utility to convert between camel-case, snake-case, kebab-case and more.

Source
npmnpm
Version
0.8.0
Version published
Maintainers
1
Created
Source

kase Travis Build Status

kase is a simple function for converting between common cases used in code.

Supporting:

  • camelCase
  • kebab-case
  • snake_case
  • dot.case
  • space case
  • path/case
  • Title Case
  • PascalCase
  • Header-Case

Example

Input

var {kase} = require('kase')
// import {kase} from 'kase'  // If you're using es modules.

var str = 'testCase'
str = kase(str, 'camel', 'kebab')

Output

'test-case'

Keywords

camel

FAQs

Package last updated on 21 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts