Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@agape/string
Advanced tools
String and token manipulation
import {
camelize,
kebabify,
pascalize,
pluralize,
titalize,
verbalize
} from '@agape/string'
camelize('foo bar') // fooBar
kebabify('Foo bar') // foo-bar
pascalize('Foo bar') // FooBar
pluralize('foo') // foos
titalize('a foo a bar') // A Foo a Bar
verbalize('foo-bar') // Foo bar
Translate strings between different representations.
camelize
Convert to camel case.
kebabify
Converted to kebab-case: lower case, word boundaries replaced with dashes.
pascalize
Remove all symbols and spaces, captialize words.
pluralize
Adds an 's' to most words. Words that end in 'y' are changed to 'ies'. Words that end in s have 'es' appended to the word.
titalize
The first letter of each word is capitalized with the exception of
a, an, and, at, be, but, by, for, if, in, of, on, the, to
which are only
capitalized if they are the first word in the string, otherwise they
are converted to lowercase.
verbalize
First character capitalized, word boundaries replaced with spaces.
Maverik Minett maverik.minett@gmail.com
© 2020-2024 Maverik Minett
MIT
FAQs
String and token manipulation
We found that @agape/string demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.