![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
luthier
Advanced tools
Readme
noun (lu·thi·er)
one who makes stringed musical instruments (such as violins or guitars)
luthier
handles all of your string
needs. 🎸
npm install luthier --save
# or
yarn add luthier
import { luthier } from 'luthier';
camelCase
constantCase
containsLetters
containsLowerCasedLetters
containsNumbers
containsOnlyLetters
containsOnlyLowerCasedLetters
containsOnlyNumbers
containsOnlySpecialCharacters
containsOnlyUpperCasedLetters
containsSpecialCharacters
containsUpperCasedLetters
countLines
countWords
customCase
dotCase
flip
initials
isCamelCased
isCapitalized
isConstantCased
isDotCased
isKebabCased
isLowerCased
isPascalCased
isSnakeCased
isStartCased
isStudlyCapped
isUpperCased
kebabCase
lowerCaseFirst
lowerCaseWords
numeronym
pascalCase
random
reverse
rot13
shuffle
snakeCase
startCase
stripTags
studlyCaps
upperCaseFirst
upperCaseWords
camelCase
luthier.camelCase('your string');
// 'yourString'
constantCase
luthier.constantCase('your string');
// 'YOUR_STRING'
containsLetters
luthier.containsLetters('your string');
// true
containsLowerCasedLetters
luthier.containsLowerCasedLetters('your string');
// true
containsNumbers
luthier.containsNumbers('your string');
// false
containsOnlyLetters
luthier.containsLetters('your string');
// false
containsOnlyLowerCasedLetters
luthier.containsOnlyLowerCasedLetters('your string');
// false
containsOnlyNumbers
luthier.containsOnlyNumbers('your string');
// false
containsOnlySpecialCharacters
luthier.containsOnlySpecialCharacters('your string');
// false
containsOnlyUpperCasedLetters
luthier.containsOnlyUpperCasedLetters('your string');
// false
containsSpecialCharacters
luthier.containsSpecialCharacters('your string');
// true
containsUpperCasedLetters
luthier.containsUpperCasedLetters('your string');
// false
countLines
luthier.countLines('your\nstring');
// 2
countWords
luthier.countWords('your string');
// 2
customCase
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');
// false
isCapitalized
luthier.isCapitalized('your string');
// false
isConstantCased
luthier.isConstantCased('your string');
// false
isDotCased
luthier.isDotCased('your string');
// false
isKebabCased
luthier.isKebabCased('your string');
// false
isLowerCased
luthier.isKebabCased('your string');
// true
isPascalCased
luthier.isPascalCased('your string');
// false
isSnakeCased
luthier.isSnakeCased('your string');
// false
isStartCased
luthier.isStartCased('your string');
// false
isStudlyCapped
luthier.isStudlyCapped('your string');
// false
isUpperCased
luthier.isUpperCased('your string');
// false
kebabCase
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.
MIT
FAQs
Luthier handles all of your string needs.
The npm package luthier receives a total of 0 weekly downloads. As such, luthier popularity was classified as not popular.
We found that luthier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.