1 | # pascalcase [![NPM version](https://badge.fury.io/js/pascalcase.svg)](http://badge.fury.io/js/pascalcase)
|
---|
2 |
|
---|
3 | > Convert a string to pascal-case.
|
---|
4 |
|
---|
5 | ## Install
|
---|
6 |
|
---|
7 | Install with [npm](https://www.npmjs.com/)
|
---|
8 |
|
---|
9 | ```sh
|
---|
10 | $ npm i pascalcase --save
|
---|
11 | ```
|
---|
12 |
|
---|
13 | ## Usage
|
---|
14 |
|
---|
15 | ```js
|
---|
16 | var pascalcase = require('pascalcase');
|
---|
17 |
|
---|
18 | pascalcase('a');
|
---|
19 | //=> 'A'
|
---|
20 |
|
---|
21 | pascalcase('foo bar baz');
|
---|
22 | //=> 'FooBarBaz'
|
---|
23 |
|
---|
24 | pascalcase('foo_bar-baz');
|
---|
25 | //=> 'FooBarBaz'
|
---|
26 |
|
---|
27 | pascalcase('foo.bar.baz');
|
---|
28 | //=> 'FooBarBaz'
|
---|
29 |
|
---|
30 | pascalcase('foo/bar/baz');
|
---|
31 | //=> 'FooBarBaz'
|
---|
32 |
|
---|
33 | pascalcase('foo[bar)baz');
|
---|
34 | //=> 'FooBarBaz'
|
---|
35 |
|
---|
36 | pascalcase('#foo+bar*baz');
|
---|
37 | //=> 'FooBarBaz'
|
---|
38 |
|
---|
39 | pascalcase('$foo~bar`baz');
|
---|
40 | //=> 'FooBarBaz'
|
---|
41 |
|
---|
42 | pascalcase('_foo_bar-baz-');
|
---|
43 | //=> 'FooBarBaz'
|
---|
44 | ```
|
---|
45 |
|
---|
46 | ## Related projects
|
---|
47 |
|
---|
48 | * [justified](https://github.com/jonschlinkert/justified): Wrap words to a specified length and justified the text.
|
---|
49 | * [pad-left](https://github.com/jonschlinkert/pad-left): Left pad a string with zeros or a specified string. Fastest implementation.
|
---|
50 | * [pad-right](https://github.com/jonschlinkert/pad-right): Right pad a string with zeros or a specified string. Fastest implementation.
|
---|
51 | * [repeat-string](https://github.com/jonschlinkert/repeat-string): Repeat the given string n times. Fastest implementation for repeating a string.
|
---|
52 | * [word-wrap](https://github.com/jonschlinkert/word-wrap): Wrap words to a specified length.
|
---|
53 |
|
---|
54 | ## Running tests
|
---|
55 |
|
---|
56 | Install dev dependencies:
|
---|
57 |
|
---|
58 | ```sh
|
---|
59 | $ npm i -d && npm test
|
---|
60 | ```
|
---|
61 |
|
---|
62 | ## Contributing
|
---|
63 |
|
---|
64 | Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/pascalcase/issues/new)
|
---|
65 |
|
---|
66 | ## Author
|
---|
67 |
|
---|
68 | **Jon Schlinkert**
|
---|
69 |
|
---|
70 | + [github/jonschlinkert](https://github.com/jonschlinkert)
|
---|
71 | + [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
---|
72 |
|
---|
73 | ## License
|
---|
74 |
|
---|
75 | Copyright © 2015 Jon Schlinkert
|
---|
76 | Released under the MIT license.
|
---|
77 |
|
---|
78 | ***
|
---|
79 |
|
---|
80 | _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 19, 2015._ |
---|