capitalize-decapitalize
NPM package for capitalizing or decapitalizing every first letter of the word. Letter case option(Upper & lower case) for every word in a sentence.
Last updated 4 months ago by dvincent333 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install capitalize-decapitalize 
SYNC missed versions from official npm registry.

Build Status

Overview

NPM package for capitalizing or decapitalizing every first letter of the word. Letter case option (Upper & lower case) for every word in a sentence.

Installation

npm i capitalize-decapitalize --save

Setup & Basic Usage

const letterCase = require('capitalize-decapitalize')

console.log(letterCase('c','hello world')
// Hello World

Additional info & options

1st Param (upper or lower case format) 2nd Param
C - Capitalize first letter of the word String value
D - Decapitalize (uncapitalize) first letter of the word
UC - Upper case all words
LC - Lower case all words

Examples

console.log(letterCase('c','hello world')
// Hello World

console.log(letterCase('d','Hello World')
// hello world

console.log(letterCase('uc','Hello World')
// HELLO WORLD

console.log(letterCase('lc','Hello World')
// hello world

Feel free to clone or fork this project: https://github.com/deanilvincent/capitalize-decapitalize.git

Contributions & pull requests are welcome!

I'll be glad if you give this project a ★ on Github :))

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Current Tags

  • 1.0.1                                ...           latest (4 months ago)

2 Versions

  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 2
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |