CaPiTaLiZe StRiNgS!
npm install capstring --save
var capstring = require('capstring');
capstring(string, cap);
Valid capitalization options:
- title
- sentence
- upper
- lower
- same
- none
- proper
- camel
- pascal
- snake
- python
- crazy
- random
- leet
- reverse
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'
npm test
npm run coverage
Please read CONTRIBUTING.md for details on the code of conduct and the process for submitting pull requests.
This application is maintained under the Semantic Versioning 2.0 guidelines.
Code and documentation copyright 2016 Brian Funk. Code released under the MIT license.