Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lodash.kebabcase

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.kebabcase

The lodash method `_.kebabCase` exported as a module.

  • 4.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created

What is lodash.kebabcase?

The lodash.kebabcase package is a utility function that converts a given string to kebab-case. Kebab-case is a string format where words are lowercased and separated by hyphens.

What are lodash.kebabcase's main functionalities?

Basic Conversion

This feature converts a simple string with spaces into kebab-case.

const kebabCase = require('lodash.kebabcase');
console.log(kebabCase('Hello World')); // Output: 'hello-world'

Conversion with Special Characters

This feature handles special characters and converts them into kebab-case.

const kebabCase = require('lodash.kebabcase');
console.log(kebabCase('Hello_World!')); // Output: 'hello-world'

Conversion with Mixed Case

This feature converts camelCase strings into kebab-case.

const kebabCase = require('lodash.kebabcase');
console.log(kebabCase('helloWorld')); // Output: 'hello-world'

Other packages similar to lodash.kebabcase

Keywords

FAQs

Package last updated on 25 Jul 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc