1 declare namespace camelcase {
4 Uppercase the first character: `foo-bar` → `FooBar`.
8 readonly pascalCase?: boolean;
12 declare const camelcase: {
14 Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`.
16 @param input - String to convert to camel case.
20 import camelCase = require('camelcase');
31 camelCase('Foo-Bar', {pascalCase: true});
34 camelCase('--foo.bar', {pascalCase: false});
40 console.log(process.argv[3]);
42 camelCase(process.argv[3]);
45 camelCase(['foo', 'bar']);
48 camelCase(['__foo__', '--bar'], {pascalCase: true});
52 (input: string | ReadonlyArray<string>, options?: camelcase.Options): string;
54 // TODO: Remove this for the next major release, refactor the whole definition to:
55 // declare function camelcase(
56 // input: string | ReadonlyArray<string>,
57 // options?: camelcase.Options
59 // export = camelcase;
60 default: typeof camelcase;