GitXplorerGitXplorer
v

title

public
582 stars
34 forks
7 issues

Commits

List of commits on branch main.
Verified
98c98829260264614124d6e54550613e3773aad3

X handle has changed (#84)

lleo committed 3 months ago
Unverified
97ad8a5877df4e940c9ef677bde33f040609cfe0

3.5.3

lleerob committed 2 years ago
Verified
c03893c8b08b4cf2117d4043fbfadfbc0fcd4902

chore: replace deprecated String.prototype.substr() (#71)

CCommanderRoot committed 2 years ago
Verified
8a669408f4224fca0348c59c94d2bcd5980bf1da

Add JWT to specials (#77)

mmxstbr committed 2 years ago
Verified
fce0d1f1a85b4f26a4bc344b52aca40814a15af3

Set up GitHub Actions to run tests. (#78)

lleerob committed 2 years ago
Unverified
0053e2f342fd14fda75ffddfb3c66bc0e5848de3

3.5.2

lleerob committed 2 years ago

README

The README file for this repository.

Title

This package correctly capitalizes your titles as per The Chicago Manual of Style. Furthermore, all of Vercel's product names are capitalized properly as well.

Usage

Firstly, install the package:

yarn add title

Then load it and convert any input:

const title = require('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!

Command Line

You can also convert titles in the command line, if you want. Install the package globally:

yarn global add 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: yarn global remove title
  3. Link it to the global module directory: yarn link

After that, you can use the title command everywhere.

Authors