lowercase
Transforms the specified fields of an item to lowercase.
import { lowercase } from 'feathers-utils/transformers';Example
import { transformData, transformResult, lowercase } from 'feathers-utils/transformers'
{
before: {
all: [transformData(lowercase('email'))],
}
}Hooks for transformers
| Hook | Description |
|---|---|
transformData | Transforms each item in |
transformQuery | Transforms |
transformResult | Transforms each item in |
Utilities for transformers
| Utility | Description |
|---|---|
mutateData | Applies a transformer function to each item in |
mutateResult | Applies a transformer function to each item in |
Type declaration
Show Type Declarations
/**
* Transforms the specified fields of an item to lowercase.
*
* @example
* ```ts
*
*
* {
* before: {
* all: [transformData(lowercase('email'))],
* }
* }
* ```
*
* @see https://utils.feathersjs.com/transformers/lowercase.html
*/
export declare const lowercase: (
fieldNames: MaybeArray<string>,
) => TransformerFn| Argument | Type | Description |
|---|---|---|
| fieldNames | MaybeArray<string> |
