
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@reverse/string
Advanced tools
Useful functions for modifying and managing strings.
You can install with nodejs and npm
npm i @reverse/string
Capitalizes the first letter of a string.
string: String: The string to modify.import { capitalize } from '@reverse/string';
capitalize('hello');
// "Hello"
capitalize('123abc');
// "123abc"
Formats a string by substituting variables.
format: String: The string to format....variables: Any: Any variables to substitute in the string.import { format } from '@reverse/string';
format('Hello $1.', 'World');
// "Hello World."
format('I like $2 and $1.', 'cats', 'dogs');
// "I like dogs and cats."
Checks if a email is a valid formatted email.
email: String: The email to check.import { isValidEmail } from '@reverse/string';
isValidEmail('example@example.com');
// true
isValidEmail('ample.com');
// false
Makes a word plural if the number is not one.
number: number: The amount of that object.word: string: The word to plural-ize.import { plural } from '@reverse/string';
plural(0, 'Dog');
// Dogs
plural(1, 'Dog');
// Dog
plural(10, 'Dog');
// Dogs
FAQs
Useful functions for modifying and managing strings.
We found that @reverse/string demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.