@colakit/capitalize
@colakit/capitalize
is designed to be simple and straightforward, similar to the _.capitalize
function in lodash, but as a standalone module with no dependencies, making it perfect for projects where you want to keep your bundle size small.
Installation
To install @colakit/capitalize
, use npm or yarn:
npm install @colakit/capitalize
yarn add @colakit/capitalize
Usage
Import @colakit/capitalize
into your project and use it:
const capitalize = require("@colakit/capitalize");
const myString = "FRED";
const result = capitalize(myString);
console.log(result);