
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
string-things
Advanced tools
Simple string functions in one tiny bundle.
I found a work project using a 30kb library to kebab case a string which was of course too large, so I have tried to provide this function and more in a small package for my web projects.
npm install string-things
or
yarn add string-things
import { camelCase } from "string-things";
camelCase("fred bill and Ted");
// => "fredBillAndTed"
camelCase("some muddled u%p te$xt");
// => "someMuddledUpText"
import { kebabCase } from "string-things";
kebabCase("string things");
// => "string-things"
kebabCase("stringThings");
// => "string-things"
import { capitaliseFirstLetter } from "string-things";
capitaliseFirstLetter("charlie");
// => "Charlie"
import { unescape } from "string-things";
unescape("<div&rt;");
// => "<div>"
import { titleCase } from "string-things";
titleCase("aPropertyNameWhichNeedsToBeDisplayedAsATitle");
// => "A Property Name Which Needs To Be Displayed As A Title"
truncate(stringValue, options)
import { truncate } from "string-things";
truncate("Once upon a time there was a string that was truncated");
// => "Once upon a time there..."
truncate("Once upon a time there was a string that was truncated", {
length: 15
});
// => "Once upon a time..."
Every time I need a string function, I will be adding it to this library.
FAQs
A library which provides some basic string manipulation functions
We found that string-things 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.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.