🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

heading-case

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heading-case

Format page titles and section headings in markdown files to use [sentence-style capitalization](https://learn.microsoft.com/en-us/style-guide/text-formatting/using-type/use-sentence-style-capitalization).

0.1.6
latest
Source
npm
Version published
Weekly downloads
1.3K
35.87%
Maintainers
1
Weekly downloads
 
Created
Source

heading-case

Format page titles and section headings in markdown files to use sentence-style capitalization.

npm version license downloads

Example

  • Input:
# A New Method for Creating JavaScript Rollovers
  • Output:
# A new method for creating JavaScript rollovers

Limitations

This package is designed for Rspack's documentation. It follows the writing style of Rspack documentation and may not work well for other projects.

There are some edge cases that can not be correctly handled, so the execution result is not completely reliable.

Usage

Install:

npm add heading-case -D

Check all markdown and MDX files in the current directory:

npx heading-case

Check and write the formatted content to the file:

npx heading-case --write

License

MIT.

FAQs

Package last updated on 16 Apr 2025

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