Socket
Socket
Sign inDemoInstall

@colakit/capitalize

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @colakit/capitalize

A lightweight utility function, similar to lodash.capitalize.


Version published
Weekly downloads
9
increased by200%
Maintainers
1
Install size
30.9 MB
Created
Weekly downloads
 

Readme

Source

@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
# OR
yarn add @colakit/capitalize

Usage

Import @colakit/capitalize into your project and use it:

const capitalize = require("@colakit/capitalize");

// Example string
const myString = "FRED";

// Call function
const result = capitalize(myString);

// Output: 'Fred'
console.log(result);

Keywords

FAQs

Last updated on 07 Mar 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc