@juln/change-case
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @juln/change-case

Weekly Downloads

4

Version

1.0.0

License

ISC

Unpacked Size

2.3 kB

Total Files

4

Last publish

Collaborators

  • juln