Stateful string operator
npm install @artgen/string-case---
Easy to use package for stateful string manipulation. Featureful and tested collection of string transformation functions designed to operate with invidual strings as objects.
---
``sh`
npm i @artgen/string-case # or yarn add @artgen/string-case
---
`ts
import { StringCase } from '@artgen/string-case';
const platform = new StringCase('Artgen Compiler');
platform.pascalCase.prefix('LoveFrom'); // LoveFromArtgenCompiler
`
---
Ever expanding list of available transformers:
| Function | Input | Output |
| :---------------- | :---------- | :----------- |
| .singular | Properties | Property |.plural
| | Property | Properties |.pascalCase
| | my property | MyProperty |.camelCase
| | my property | myProperty |.kebabCase
| | my property | my-property |.snakeCase
| | my property | my_property |.dotCase
| | my property | my.property |.humanCase
| | my_property | My property |.titleCase
| | my-property | My Property |.upperCase
| | my property | MY PROPERTY |.lowerCase
| | MY pRoperty | my property |.capitalCase
| | my property | My property |.vacuumCase
| | my property | myproperty |.prefix('my')
| | property | myproperty |.suffix('ofme')` | property | propertyofme |
|
---
See the detailed changes in the CHANGELOG file.