0.0.2 • Published 2 years ago

@u7/kebab v0.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

@u7/kebab

安装

推荐用 @antfu/ni

ni -D @u7/kebab

使用

→ test/index.coffee

#!/usr/bin/env coffee

import kebab from '@u7/kebab'

for i in 'str_li str2li i18n iI18n test-db User LIB_INDEX'.split(' ')
  console.log "#{i} → #{kebab i}"

输出

→ out.txt

str_li → str-li
str2li → str2li
i18n → i18n
iI18n → i-i18n
test-db → test-db
User → user
LIB_INDEX → lib-index
0.0.2

2 years ago