You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All packages are [pure ESM packages](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) and ship with TypeScript definitions. They cannot be `require`'d or used with legacy `node` module resolution in TypeScript.
@@ -27,17 +33,15 @@ These case change functions are included:
27
33
|`snakeCase`|`two_words`|
28
34
|`trainCase`|`Two-Words`|
29
35
30
-
All core methods accept [`options`](#options) as the second argument.
31
-
32
-
### Options
36
+
All methods accept an `options` object as the second argument:
33
37
34
38
-`locale?: string[] | string | false` Lower/upper according to specified locale, defaults to host environment. Set to `false` to disable.
35
39
-`separateNumbers?: boolean` Splits `foo123` into `foo 123` instead of keeping them together. Defaults to `true`.
36
40
-`prefixCharacters?: string` Retain at the beginning of the string. Defaults to `""`. Example: use `"_"` to keep the underscores in `__typename`.
37
41
38
42
### Split
39
43
40
-
**Change case**also exports a `split`function which can be used to build your own case formatting methods. It accepts a string and returns each "word" as an array. For example:
44
+
**Change case** exports a `split`utility which can be used to build other case functions. It accepts a string and returns each "word" as an array. For example:
41
45
42
46
```js
43
47
split("fooBar")
@@ -53,11 +57,11 @@ import * as changeKeys from "change-case/keys";
0 commit comments