Skip to content

Commit 5c929c8

Browse files
authored
Update README.md
1 parent 68fb695 commit 5c929c8

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

README.md

+24-23
Original file line numberDiff line numberDiff line change
@@ -212,38 +212,39 @@ Here is the string `Lives down BY the River` with each of the converters:
212212
// If you typed in 'Lives down BY the River' for the a Replacer Slot named '__replacerSlot__' and
213213
// used one of the optional Case Converters you would get the following:
214214

215-
'__replacerSlot__(noCase)'; // 'Lives down BY the River';
216-
'__replacerSlot__(camelCase)'; // 'livesDownByTheRiver';
217-
'__replacerSlot__(constantCase)'; // 'LIVES_DOWN_BY_THE_RIVER';
218-
'__replacerSlot__(dotCase)'; // 'lives.down.by.the.river';
219-
'__replacerSlot__(kebabCase)'; // 'lives-down-by-the-river';
220-
'__replacerSlot__(lowerCase)'; // 'livesdownbytheriver';
221-
'__replacerSlot__(pascalCase)'; // 'LivesDownByTheRiver';
222-
'__replacerSlot__(pathCase)'; // 'lives/down/by/the/river';
223-
'__replacerSlot__(sentenceCase)'; // 'Lives down by the river';
224-
'__replacerSlot__(snakeCase)'; // 'lives_down_by_the_river';
225-
'__replacerSlot__(titleCase)'; // 'Lives Down By The River';
215+
__replacerSlot__(noCase) // Lives down BY the River
216+
__replacerSlot__(camelCase) // livesDownByTheRiver
217+
__replacerSlot__(constantCase) // LIVES_DOWN_BY_THE_RIVER
218+
__replacerSlot__(dotCase) // lives.down.by.the.river
219+
__replacerSlot__(kebabCase) // lives-down-by-the-river
220+
__replacerSlot__(lowerCase) // livesdownbytheriver
221+
__replacerSlot__(pascalCase) // LivesDownByTheRiver
222+
__replacerSlot__(pathCase) // lives/down/by/the/river
223+
__replacerSlot__(sentenceCase) // Lives down by the river
224+
__replacerSlot__(snakeCase) // lives_down_by_the_river
225+
__replacerSlot__(titleCase) // Lives Down By The River
226226

227227
// Note: you can set a 'defaultCase' converter in IConfigItem so all
228228
// Replacer Slots without a Case Converter will be transformed the same way.
229229
__replacerSlot__; // LivesDownByTheRiver
230230
```
231231

232-
You may also specify the case using an underscores-only syntax:
232+
You may also specify the case using an underscores-only syntax e.g. `PascalCase__`:
233233

234234
```js
235-
__replacerSlot__NoCase__; // Lives down BY the River
236-
__replacerSlot__CamelCase__; // livesDownByTheRiver
237-
__replacerSlot__ConstantCase__; // LIVES_DOWN_BY_THE_RIVER
238-
__replacerSlot__DotCase__; // lives.down.by.the.river
239-
__replacerSlot__KebabCase__; // lives-down-by-the-river
240-
__replacerSlot__LowerCase__; // livesdownbytheriver
241-
__replacerSlot__PascalCase__; // LivesDownByTheRiver
242-
__replacerSlot__PathCase__; // lives/down/by/the/river
243-
__replacerSlot__SentenceCase__; // Lives down by the river
244-
__replacerSlot__SnakeCase__; // lives_down_by_the_river
245-
__replacerSlot__TitleCase__; // Lives Down By The River
235+
__replacerSlot__NoCase__ // Lives down BY the River
236+
__replacerSlot__CamelCase__ // livesDownByTheRiver
237+
__replacerSlot__ConstantCase__ // LIVES_DOWN_BY_THE_RIVER
238+
__replacerSlot__DotCase__ // lives.down.by.the.river
239+
__replacerSlot__KebabCase__ // lives-down-by-the-river
240+
__replacerSlot__LowerCase__ // livesdownbytheriver
241+
__replacerSlot__PascalCase__ // LivesDownByTheRiver
242+
__replacerSlot__PathCase__ // lives/down/by/the/river
243+
__replacerSlot__SentenceCase__ // Lives down by the river
244+
__replacerSlot__SnakeCase__ // lives_down_by_the_river
245+
__replacerSlot__TitleCase__ // Lives Down By The River
246246
```
247+
Take your [Replacer Slots](#replacer-slots-or-ireplacerslotquestion) `__replacerSlot__`, the [Case Converters](#case-converters) `PascalCase__` and combine them together to make `__replacerSlot__PascalCase__`.
247248

248249
One Rule: no spaces between the [Replacer Slots](#replacer-slots-or-ireplacerslotquestion) and [Case Converters](#case-converters). If there is a space, [Case Converters](#case-converters) will not work.
249250

0 commit comments

Comments
 (0)