1.0.6 • Published 4 years ago

@artgen/string-case v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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.

Installation


npm i @artgen/string-case # or yarn add @artgen/string-case

Examples


import { StringCase } from '@artgen/string-case';

const platform = new StringCase('Artgen Compiler');

platform.pascalCase.prefix('LoveFrom'); // LoveFromArtgenCompiler

Transformers


Ever expanding list of available transformers:

FunctionInputOutput
.singularPropertiesProperty
.pluralPropertyProperties
.pascalCasemy propertyMyProperty
.camelCasemy propertymyProperty
.kebabCasemy propertymy-property
.snakeCasemy propertymy_property
.dotCasemy propertymy.property
.humanCasemy_propertyMy property
.titleCasemy-propertyMy Property
.upperCasemy propertyMY PROPERTY
.lowerCaseMY pRopertymy property
.capitalCasemy propertyMy property
.vacuumCasemy propertymyproperty
.prefix('my')propertymyproperty
.suffix('ofme')propertypropertyofme

Changelog


See the detailed changes in the CHANGELOG file.