title
Capitalize your titles properly
Last updated a year ago by leerobinson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install title 
SYNC missed versions from official npm registry.

Title

This package correctly capitalizes your titles as per The Chicago Manual of Style.

Usage

Install the package:

pnpm add title

Then, import it and convert any input text:

import title from 'title'

title('tHe cHicaGo maNual oF StyLe')

// Will result in:
// "The Chicago Manual of Style"

You can pass words that should be capitalized as specified:

title('FaCEbook is great', {
  special: [ 'facebook' ]
})

// Will result in:
// "facebook is great"

Command Line

You can also convert titles in the command line. Install the package globally:

pnpm add -g title

Next, run it:

title "tHe cHicaGo maNual oF StyLe"

# Will result in:
# "The Chicago Manual of Style"

To see all available options, run:

title -h

Contributing

  1. Fork this repository to your own GitHub account and then clone it to your local device
  2. Uninstall title if it's already installed: pnpm remove -g title
  3. Link it to the global module directory: pnpm link

After that, you can use the title command everywhere.

Original Authors

Current Tags

  • 4.0.1                                ...           latest (a year ago)

20 Versions

  • 4.0.1                                ...           a year ago
  • 4.0.0                                ...           a year ago
  • 3.5.3                                ...           4 years ago
  • 3.5.2                                ...           4 years ago
  • 3.5.1                                ...           4 years ago
  • 3.5.0                                ...           4 years ago
  • 3.4.4                                ...           4 years ago
  • 3.4.3                                ...           5 years ago
  • 3.4.2                                ...           6 years ago
  • 3.4.1                                ...           7 years ago
  • 3.4.0                                ...           8 years ago
  • 3.3.2                                ...           8 years ago
  • 3.3.1                                ...           8 years ago
  • 3.3.0                                ...           8 years ago
  • 3.2.0                                ...           8 years ago
  • 3.1.1                                ...           8 years ago
  • 3.1.0                                ...           8 years ago
  • 3.0.1                                ...           8 years ago
  • 3.0.0                                ...           8 years ago
  • 1.0.0                                ...           13 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (5)

Copyright 2013 - present © cnpmjs.org | Home |