Socket
Socket
Sign inDemoInstall

param-case

Package Overview
Dependencies
1
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    param-case

Transform into a lower cased string with dashes between words


Version published
Weekly downloads
16M
decreased by-2.04%
Maintainers
1
Install size
10.5 kB
Created
Weekly downloads
 

Package description

What is param-case?

The param-case package is a utility for converting text into 'param case', also known as 'kebab case', where words are lowercase and separated by hyphens. This is often used in URLs and file names.

What are param-case's main functionalities?

Convert to Param Case

Converts a string to param case (kebab case), making it lowercase with words separated by hyphens.

const { paramCase } = require('param-case');

const result = paramCase('stringToConvert');
// Output: 'string-to-convert'

Other packages similar to param-case

Readme

Source

Param Case

Transform into a lower cased string with dashes between words.

Installation

npm install param-case --save

Usage

import { paramCase } from "param-case";

paramCase("string"); //=> "string"
paramCase("dot.case"); //=> "dot-case"
paramCase("PascalCase"); //=> "pascal-case"
paramCase("version 1.2.10"); //=> "version-1-2-10"

The function also accepts options.

License

MIT

Keywords

FAQs

Last updated on 30 Sep 2023

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