source: trip-planner-front/node_modules/pascalcase/README.md@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[6a3a178]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
7Install with [npm](https://www.npmjs.com/)
8
9```sh
10$ npm i pascalcase --save
11```
12
13## Usage
14
15```js
16var pascalcase = require('pascalcase');
17
18pascalcase('a');
19//=> 'A'
20
21pascalcase('foo bar baz');
22//=> 'FooBarBaz'
23
24pascalcase('foo_bar-baz');
25//=> 'FooBarBaz'
26
27pascalcase('foo.bar.baz');
28//=> 'FooBarBaz'
29
30pascalcase('foo/bar/baz');
31//=> 'FooBarBaz'
32
33pascalcase('foo[bar)baz');
34//=> 'FooBarBaz'
35
36pascalcase('#foo+bar*baz');
37//=> 'FooBarBaz'
38
39pascalcase('$foo~bar`baz');
40//=> 'FooBarBaz'
41
42pascalcase('_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
56Install dev dependencies:
57
58```sh
59$ npm i -d && npm test
60```
61
62## Contributing
63
64Pull 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
75Copyright © 2015 Jon Schlinkert
76Released 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._
Note: See TracBrowser for help on using the repository browser.