camel2kebab
camelCase/PascalCase to kebab-case
Last updated 5 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install camel2kebab 
SYNC missed versions from official npm registry.

camel2kebab Build Status

camelCase/PascalCase to kebab-case

Install

$ npm install --save camel2kebab

Usage

const camel2kebab = require('camel2kebab');

camel2kebab('fontSize');
//=> 'font-size'
// if it's either camelCase or PascalCase
// we just return lowercased string

API

camel2kebab(input, toLowerCase)

input

Type: string

Input camelCased string

toLowerCase

true by default

Covert the whole input string to lowercase

License

MIT © EGOIST

Current Tags

  • 0.0.2                                ...           latest (5 years ago)

1 Versions

  • 0.0.2                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 3
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |