@eatingdots/title
TypeScript icon, indicating that this package has built-in type declarations

3.5.6 • Public • Published

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

  1. Fork this repository to your own GitHub account and then clone it to your local device
  2. Link it to the global module directory: npm link <path-to-repo>

Authors

Package Sidebar

Install

npm i @eatingdots/title

Weekly Downloads

2

Version

3.5.6

License

MIT

Unpacked Size

10 kB

Total Files

6

Last publish

Collaborators

  • wladiston
  • eatingdotsbot