https://github.com/brianfunk/capstring
CaPiTaLiZe StRiNgS!
https://github.com/brianfunk/capstring
capitalization string
Last synced: 11 months ago
JSON representation
CaPiTaLiZe StRiNgS!
- Host: GitHub
- URL: https://github.com/brianfunk/capstring
- Owner: brianfunk
- License: mit
- Created: 2016-12-19T00:31:07.000Z (over 9 years ago)
- Default Branch: dev
- Last Pushed: 2016-12-19T07:17:47.000Z (over 9 years ago)
- Last Synced: 2024-10-09T10:01:29.078Z (over 1 year ago)
- Topics: capitalization, string
- Language: JavaScript
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/brianfunk/capstring)
[](https://github.com/brianfunk/capstring)
[](https://www.npmjs.com/package/capstring)
[](https://codeclimate.com/github/brianfunk/capstring)
[](https://codecov.io/gh/brianfunk/capstring)
[](https://www.codacy.com/app/bfunk/capstring)
[](https://www.bithound.io/github/brianfunk/capstring)
[](https://travis-ci.org/brianfunk/capstring)
[](https://www.versioneye.com/user/projects/57dde680bf3e4c0034e21e94)
[](https://github.com/ellerbrock/open-source-badge/)
[](http://semver.org/spec/v2.0.0.html)
[](https://opensource.org/licenses/MIT)
[](https://www.linkedin.com/in/brianrandyfunk)
# 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](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](http://semver.org/spec/v2.0.0.html).
## Copyright and license
Code and documentation copyright 2016 Brian Funk. Code released under [the MIT license](https://opensource.org/licenses/MIT).
### # " "