@eatingdots/title
v3.5.6
Published
Capitalize titles properly
Downloads
15
Readme
Title
This package is based on Vercel's title package and correctly capitalizes your titles as per The Chicago Manual of Style. Furthermore, all of Eating Dots's product names are capitalized properly as well.
Usage
Firstly, install the package:
npm i @eatingdots/title
Then load it and convert any input:
const title = require("@eatingdots/title");
title("tHe cHicaGo maNual oF StyLe");
// Will result in:
// "The Chicago Manual of Style"
You can even pass words that should be capitalized as specified:
title("FaCEbook is great", {
special: ["facebook"],
});
// Will result in:
// "facebook is great"
That's it!
Contributing
- Fork this repository to your own GitHub account and then clone it to your local device
- Link it to the global module directory:
npm link <path-to-repo>
Authors
- Wlad Paiva (@wladiston)
- Leo Lamprecht (@notquiteleo)
- Josh Junon (@Qix-)