capstring

0.1.3 • Public • Published

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.

# " "

Package Sidebar

Install

npm i capstring

Weekly Downloads

0

Version

0.1.3

License

MIT

Last publish

Collaborators

  • brianfunk