You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

header-case

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

header-case

Transform into a dash separated string of capitalized words

3.0.0
latest
Source
npmnpm
Version published
Weekly downloads
8M
-5.22%
Maintainers
1
Weekly downloads
 
Created
Source

Header Case

Transform into a dash separated string of capitalized words.

Installation

npm install header-case --save

Usage

import { headerCase } from "header-case";

headerCase("string"); //=> "String"
headerCase("dot.case"); //=> "Dot-Case"
headerCase("PascalCase"); //=> "Pascal-Case"
headerCase("version 1.2.10"); //=> "Version-1-2-10"

The function also accepts options.

License

MIT

Keywords

header

FAQs

Package last updated on 30 Sep 2023

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