StandardKit - Case as a Service - Case Utility
npm install @standardkit/caas


Feedback is always welcome just take into account this is not currently polished for random people to start using it.
So if you want to use it but you're missing something, let me know. We'll make it happen.
``bash`
npm i @standardkit/caas
typescript
import { depascalize } from '@standardkit/caas';const result = depascalize('CaseExample');
// ['case', 'example']
`$3
`typescript
import { camel } from '@standardkit/caas';const result = camel(['case', 'example']);
// 'caseExample'
`
What is it?
A utility package to change case. It currently supports:
$3
- kebab-case
- snake_case
- camelCase
- PascalCase
- human case (maybe needs a different name)
- path/case
- Sentence case
- Title Case
$3
- capitalize: capitalizes first letter of a string
- depascalize: takes PascalCase, converts to segments (lowercase string[])
Roadmap
- Case Detection
- Case Conversion
- Validation
- Sanitize
- Batch conversion
$3
- CONST_CASE
- dot.case
- BEM\_\_case
- lowercase (Function instead of string operation for use in maps)
- UPPERCASE (Function instead of string operation for use in maps)
License
Unlicense - Do whatever you want.
View LICENSE file for details.
Development
Hit me up if you want to discuss anything. All feedback is welcome.
Publishing
$3
Make sure to have access to the @standardkit organization on npm,
and login with: npm login$3
`bash
npm run release:patch
npm run release:minor
npm run release:major
`Under the hood this translates to:
1.
npm test
2. npm run build
3. npm version patch|minor|major
4. npm publish`