string-capitalize

1.0.1 • Public • Published

string-capitalize Build Status

Capitalizes a string.

NPM

browser support

I noticed that there was a TODO in string.js to break things up into smaller modules so I thought I would help out.

Installation

npm install string-capitalize

capitalize(string)

Capitalizes a string.

var capitalize = require('string-capitalize')

capitalize('word up') // Word up
capitalize('WORD UP') // Word up

Contributing

Fork and send a PR. Where it makes sense make sure to add a test for your work.

Feel free to report any issues.

LICENSE (MIT)

Copyright (c) Jason Campbell ("Author")

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Readme

Keywords

none

Package Sidebar

Install

npm i string-capitalize

Weekly Downloads

4,518

Version

1.0.1

License

MIT

Last publish

Collaborators

  • jxson