@juln/change-case
v1.0.0
Published
提供一系列命名风格转换的api
Downloads
12
Readme
change-case
提供一系列命名风格转换的api
install
npm i @juln/change-case -S
or
yarn add @juln/change-case
usage
const changeCase = require('@juln/change-case');
console.log(changeCase('UserAvatar', 'kebab')); // user-avatar
case
camel-case
lower-camel-case
capital-case
constant-case
dot-case
header-case
no-case
param-case
kebab
pascal-case
upper-camel-case
path-case
sentence-case
snake-case