luthier
v0.7.0
Published
Luthier handles all of your string needs.
Readme
luthier
noun (lu·thi·er)
one who makes stringed musical instruments (such as violins or guitars)
luthier handles all of your string needs. 🎸
Installation
npm install luthier --save
# or
yarn add luthierUsage
import { luthier } from 'luthier';Functions
camelCaseconstantCasecontainsLetterscontainsLowerCasedLetterscontainsNumberscontainsOnlyLetterscontainsOnlyLowerCasedLetterscontainsOnlyNumberscontainsOnlySpecialCharacterscontainsOnlyUpperCasedLetterscontainsSpecialCharacterscontainsUpperCasedLetterscountLinescountWordscustomCasedotCaseflipinitialsisCamelCasedisCapitalizedisConstantCasedisDotCasedisKebabCasedisLowerCasedisPascalCasedisSnakeCasedisStartCasedisStudlyCappedisUpperCasedkebabCaselowerCaseFirstlowerCaseWordsnumeronympascalCaserandomreverserot13shufflesnakeCasestartCasestripTagsstudlyCapsupperCaseFirstupperCaseWords
camelCase
luthier.camelCase('your string');
// 'yourString'constantCase
luthier.constantCase('your string');
// 'YOUR_STRING'containsLetters
luthier.containsLetters('your string');
// truecontainsLowerCasedLetters
luthier.containsLowerCasedLetters('your string');
// truecontainsNumbers
luthier.containsNumbers('your string');
// falsecontainsOnlyLetters
luthier.containsLetters('your string');
// falsecontainsOnlyLowerCasedLetters
luthier.containsOnlyLowerCasedLetters('your string');
// falsecontainsOnlyNumbers
luthier.containsOnlyNumbers('your string');
// falsecontainsOnlySpecialCharacters
luthier.containsOnlySpecialCharacters('your string');
// falsecontainsOnlyUpperCasedLetters
luthier.containsOnlyUpperCasedLetters('your string');
// falsecontainsSpecialCharacters
luthier.containsSpecialCharacters('your string');
// truecontainsUpperCasedLetters
luthier.containsUpperCasedLetters('your string');
// falsecountLines
luthier.countLines('your\nstring');
// 2countWords
luthier.countWords('your string');
// 2customCase
luthier.customCase('+', 'your string');
// 'your+string'dotCase
luthier.dotCase('your string');
// 'your.string'flip
luthier.flip('your string');
// 'ɓuᴉɹʇs ɹnoʎ'initials
luthier.initials('your string');
// 'YG'isCamelCased
luthier.isCamelCased('your string');
// falseisCapitalized
luthier.isCapitalized('your string');
// falseisConstantCased
luthier.isConstantCased('your string');
// falseisDotCased
luthier.isDotCased('your string');
// falseisKebabCased
luthier.isKebabCased('your string');
// falseisLowerCased
luthier.isKebabCased('your string');
// trueisPascalCased
luthier.isPascalCased('your string');
// falseisSnakeCased
luthier.isSnakeCased('your string');
// falseisStartCased
luthier.isStartCased('your string');
// falseisStudlyCapped
luthier.isStudlyCapped('your string');
// falseisUpperCased
luthier.isUpperCased('your string');
// falsekebabCase
luthier.kebabCase('your string');
// 'your-string'lowerCaseFirst
luthier.lowerCaseFirst('Your string');
// 'your string'lowerCaseWords
luthier.lowerCaseWords('Your String');
// 'your string'numeronym
luthier.numeronym('your string');
// 'y8g'pascalCase
luthier.pascalCase('your string');
// 'YourString'random
luthier.random(10);
// 'psifnwkflr'reverse
luthier.reverse('your string');
// 'gnirts ruoy'rot13
luthier.rot13('your string');
// 'lbhe fgevat'shuffle
luthier.shuffle('your string');
// 'nru grsioty'snakeCase
luthier.snakeCase('your string');
// 'your_string'startCase
luthier.startCase('your string');
// 'Your String'stripTags
luthier.stripTags('<em>your string</em>');
// 'your string'studlyCaps
luthier.studlyCaps('your string');
// 'YoUr StRiNg'upperCaseFirst
luthier.upperCaseFirst('your string');
// 'Your string'upperCaseWords
luthier.upperCaseWords('your string');
// 'Your String'Unlike startCase, the upperCaseWords method does not apply
String.prototype.toLowerCase() first.
License
MIT
