
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
str-kit-kp
Advanced tools
A utility package for advanced string manipulations such as capitalization, camelCase conversion, kebab-case, trimming, and more.
str-kit-kp
is a simple and easy-to-use package providing utility functions for string manipulation. It includes functions for capitalizing letters, converting strings to camelCase, kebab-case, and more.
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js 0.10 or higher is required.
If this is a brand new project, make sure to create a package.json
first with
the npm init
command.
Installation is done using the
npm install
command:
$ npm install str-kit-kp
Follow our installing guide for more information.
To get started with str-kit-kp, follow these steps:
Install the executable. The executable's major version will match Express's:
$ npm install str-kit-kp
//In JavaScript
const strKit = require('str-kit-kp');
const result = strKit.capitalizeFirstLetter('hello world');
console.log(result); // Output: 'Hello world'
//In TypeScipt
import * as strKit from 'str-kit-kp';
const result: string = strKit.capitalizeFirstLetter('hello world');
console.log(result); // Output: 'Hello world'
const camelCaseResult: string = strKit.toCamelCase('hello world');
console.log(camelCaseResult); // Output: 'helloWorld'
const trimmedResult: string = strKit.trimWhitespace(' some text ');
console.log(trimmedResult); // Output: 'some text'
const underscoredResult: string = strKit.replaceSpacesWithUnderscores('hello world');
console.log(underscoredResult); // Output: 'hello_world'
const kebabCaseResult: string = strKit.toKebabCase('Hello World');
console.log(kebabCaseResult); // Output: 'hello-world'
const capitalizeEveryLetterResult: string = strKit.capitalizeEveryLetter('hello world');
console.log(capitalizeEveryLetterResult); // Output: 'HELLO WORLD'
FAQs
A utility package for advanced string manipulations such as capitalization, camelCase conversion, kebab-case, trimming, and more.
We found that str-kit-kp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.