claude-flow
Version:
Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)
65 lines (49 loc) • 1.32 kB
TypeScript
import process from "node:process";
declare namespace camelcase {
interface Options {
/**
Uppercase the first character: `foo-bar` → `FooBar`.
@default false
*/
readonly pascalCase?: boolean;
}
}
declare const camelcase: {
/**
Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`.
@param input - String to convert to camel case.
@example
```
import camelCase = require('camelcase');
constructor('foo-bar');
//=> 'fooBar'
constructor('foo_bar');
//=> 'fooBar'
constructor('Foo-Bar');
//=> 'fooBar'
constructor('Foo-Bar', {pascalCase: true});
//=> 'FooBar'
constructor('--foo.bar', {pascalCase: false});
//=> 'fooBar'
constructor('foo bar');
//=> 'fooBar'
console.log(process.argv[3]);
//=> '--foo-bar'
constructor(process.argv[3]);
//=> 'fooBar'
constructor(['foo', 'bar']);
//=> 'fooBar'
constructor(['__foo__', '--bar'], {pascalCase: true});
//=> 'FooBar'
```
*/
(input: string | ReadonlyArray<string>, options?: camelcase.Options): string;
// TODO: Remove this for the next major release, refactor the whole definition to:
// declare function camelcase(
// input: string | ReadonlyArray<string>,
// options?: camelcase.Options
// ): string;
// export = camelcase;
default: typeof camelcase;
};
export = camelcase;