Skip to content
dev
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

capstring GitHub npm Code Climate codecov Codacy Badge bitHound Overall Score TravisCI Dependency Status Open Source Love Semver license LinkedIn

capstring

CaPiTaLiZe StRiNgS!

Install

npm install capstring --save

Usage

var capstring = require('capstring');

capstring(string, cap);

Values

Valid capitalization options:

  • title
  • sentence
  • upper
  • lower
  • same
  • none
  • proper
  • camel
  • pascal
  • snake
  • python
  • crazy
  • random
  • leet
  • reverse

Examples

capstring('hello WORLD', 'title');  // returns 'Hello World'
capstring('hello WORLD', 'sentence');  // returns 'Hello world'
capstring('hello WORLD', 'upper');  // returns 'HELLO WORLD'
capstring('hello WORLD', 'lower');  // returns 'hello world'

Tests

npm test

Coverage

npm run coverage

Contributing

Please read CONTRIBUTING.md for details on the code of conduct and the process for submitting pull requests.

Versioning

This application is maintained under the Semantic Versioning 2.0 guidelines.

Copyright and license

Code and documentation copyright 2016 Brian Funk. Code released under the MIT license.

# " "

You can’t perform that action at this time.