@standardkit/caas
While this package is of course amazing and groundbreaking and has definitely never been done before, it is subject to change since we're not quite in version 1 yet.
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.
npm i @standardkit/caas
import { depascalize } from '@standardkit/caas';
const result = depascalize('CaseExample');
// ['case', 'example']
import { camel } from '@standardkit/caas';
const result = camel(['case', 'example']);
// 'caseExample'
A utility package to change case. It currently supports:
- kebab-case
- snake_case
- CONST_CASE
- camelCase
- PascalCase
- human case (maybe needs a different name)
- path/case
- Sentence case
- Title Case
- capitalize: capitalizes first letter of a string
- depascalize: takes PascalCase, converts to segments (lowercase string[])
- Case Detection
- Case Conversion
- Validation
- Sanitize
- Batch conversion
- dot.case
- BEM__case
- lowercase (Function instead of string operation for use in maps)
- UPPERCASE (Function instead of string operation for use in maps)
- Linters (prettier, eslint)
- Hooks (husky, lint-staged)
Unlicense - Do whatever you want.
View LICENSE file for details.
Hit me up if you want to discuss anything. All feedback is welcome.
Make sure to have access to the @standardkit organization on npm,
and login with: npm login
npm run release:patch
npm run release:minor
npm run release:major
Then, create a release on GitHub.