UNPKG

@iamkenos/iris

Version:

Test API endpoints with Axios & Jest using a collection of custom matchers and built-in utility functions.

29 lines (28 loc) 1.35 kB
import { camelCase, capitalCase, constantCase, dotCase, noCase, pascalCase, pathCase, sentenceCase, snakeCase } from "change-case"; export declare function isURL(str: string): string | false; export declare function isJSON(str: string): boolean; export declare function parseJSON(object: any): any; export declare const changecase: { /** Convert a string to camel case (`fooBar`). */ camelCase: typeof camelCase; /** Convert a string to capital case (`Foo Bar`). */ capitalCase: typeof capitalCase; /** Convert a string to constant case (`FOO_BAR`). */ constantCase: typeof constantCase; /** Convert a string to dot case (`foo.bar`). */ dotCase: typeof dotCase; /** Convert a string to kebab case (`foo-bar`). */ kebabCase: (input: string) => string; /** Convert a string to space separated lower case (`foo bar`). */ noCase: typeof noCase; /** Convert a string to pascal case (`FooBar`). */ pascalCase: typeof pascalCase; /** Convert a string to path case (`foo/bar`). */ pathCase: typeof pathCase; /** Convert a string to path case (`Foo bar`). */ sentenceCase: typeof sentenceCase; /** Convert a string to snake case (`foo_bar`). */ snakeCase: typeof snakeCase; /** Split any cased input strings into an array of words. */ split: (input: string) => string[]; };