char-roopantar
Version:
A simple and lightweight JavaScript utility library to transform text into different formats like `camelCase`, `PascalCase`, `snake_case`, `kebab-case`, `UPPERCASE`, `lowercase`, and more.
23 lines (19 loc) • 623 B
JavaScript
const {
toUpperCase,
toLowerCase,
toCamelCase,
toPascalCase
} = require('char-roopantar')
import {
toSnakeCase,
toKebabCase,
toTrimmed
} from './transformers/transformers.mjs'
console.log(toUpperCase('this is only for test.'))
console.log(toPascalCase('this is only for test.'))
console.log(toTrimmed('this is only for test.'))
console.log(toKebabCase('this is only for test.'))
console.log(toSnakeCase('this is only for test.'))
console.log(toLowerCase('this is only for test.'))
console.log(toCamelCase('this is only for test.'))
console.log(toPascalCase('this is only for test.'))