mirror of https://github.com/abpframework/abp.git
1 changed files with 11 additions and 5 deletions
@ -1,9 +1,15 @@ |
|||
import { strings } from '@angular-devkit/core'; |
|||
|
|||
export const camel = strings.camelize; |
|||
export const kebab = strings.dasherize; |
|||
export const lower = (text: string) => text.toLowerCase(); |
|||
export const macro = (text: string) => strings.underscore(text).toUpperCase(); |
|||
export const pascal = strings.classify; |
|||
export const snake = strings.underscore; |
|||
export const upper = (text: string) => text.toUpperCase(); |
|||
export const camel = (text: string) => strings.camelize(_(text)); |
|||
export const pascal = (text: string) => strings.classify(_(text)); |
|||
export const kebab = (text: string) => strings.dasherize(_(text)); |
|||
export const snake = (text: string) => strings.underscore(_(text)); |
|||
export const macro = (text: string) => upper(snake(text)); |
|||
export const dir = (text: string) => |
|||
strings.dasherize(text.replace(/\./g, '/').replace(/\/\//g, '/')); |
|||
|
|||
function _(text: string): string { |
|||
return text.replace(/\./g, '_'); |
|||
} |
|||
|
|||
Loading…
Reference in new issue