https://github.com/aburd/titler
Capitalize title strings using the title string and exception words
https://github.com/aburd/titler
Last synced: 5 days ago
JSON representation
Capitalize title strings using the title string and exception words
- Host: GitHub
- URL: https://github.com/aburd/titler
- Owner: aburd
- License: mit
- Created: 2016-02-24T15:38:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-24T15:46:50.000Z (over 10 years ago)
- Last Synced: 2025-10-25T09:27:41.298Z (9 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
require the file then instantiate the variable to use it.
name( title, exceptions )
where
'name' is the var name used with require
'title' (str) - Name of the title
'exceptions' (str) - List of exceptions separated by spaces
ex:
myFunc('a night to remember', 'a to') // returns 'A Night to Remember' *first letter always caps