diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-15 09:23:31 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-15 09:23:31 +0800 |
| commit | be4d8a9462de720e6b22cf291860cf4a87e066ae (patch) | |
| tree | 423bb8ad04d05f3ca47d67141bad6d536f2aef43 /node_modules/camelcase/readme.md | |
| parent | b5134a5a8d953fd741a17536959293ba855ffd66 (diff) | |
updates
Diffstat (limited to 'node_modules/camelcase/readme.md')
| -rw-r--r-- | node_modules/camelcase/readme.md | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/node_modules/camelcase/readme.md b/node_modules/camelcase/readme.md new file mode 100644 index 00000000..516dc398 --- /dev/null +++ b/node_modules/camelcase/readme.md @@ -0,0 +1,56 @@ +# camelcase [](https://travis-ci.org/sindresorhus/camelcase) + +> Convert a dash/dot/underscore/space separated string to camelCase: `foo-bar` → `fooBar` + + +## Install + +```sh +$ npm install --save camelcase +``` + + +## Usage + +```js +var camelCase = require('camelcase'); + +camelCase('foo-bar'); +//=> fooBar + +camelCase('foo_bar'); +//=> fooBar + +camelCase('Foo-Bar'); +//=> fooBar + +camelCase('--foo.bar'); +//=> fooBar + +camelCase('__foo__bar__'); +//=> fooBar + +camelCase('foo bar'); +//=> fooBar + +console.log(process.argv[3]); +//=> --foo-bar +camelCase(process.argv[3]); +//=> fooBar + +camelCase('foo', 'bar'); +//=> fooBar + +camelCase('__foo__', '--bar'); +//=> fooBar +``` + + +## Related + +See [`decamelize`](https://github.com/sindresorhus/decamelize) for the inverse. + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) |
