2.0.3 • Published 7 months ago

@mimik/lib-filters v2.0.3

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
7 months ago

lib-filters

Example

import libFilters from '@mimik/lib-filters';

lib-filters~lengthyString(object, length) ⇒ Object

Replace lenghty strings by --(string length)-- in a given object.

Kind: inner method of lib-filters
Returns: Object - The transformed object.
Category: sync

ParamTypeDescription
objectObjectThe object where strings will be replaced.
lengthNumberThe length at which the replacement happens. If no length is given the default length is 1000 characters.

lib-filters~isProd(env) ⇒ Boolean

Chech if the environment is Production

Kind: inner method of lib-filters
Returns: Boolean - Return true if the env in not exisitent or not a string
Category: sync

ParamTypeDescription
envStringThe enviroment property.

lib-filters~logs(object, config) ⇒ Object

Mask the variable defined in the config on the object.

Kind: inner method of lib-filters
Returns: Object - The filtered object.

Mask the variable defined in the config on the object. Follow the jsonpath pattern for masking: https://www.npmjs.com/package/jsonpath
Category: sync

ParamTypeDescription
objectObjectThe object to apply filtering.
configObjectThe configuration to use for the filtering.
2.0.3

7 months ago

2.0.2

8 months ago

2.0.1

8 months ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

2.0.0

2 years ago

1.4.9

2 years ago

1.4.8

2 years ago

1.4.7

2 years ago

1.4.6

3 years ago

1.4.5

3 years ago

1.4.4

3 years ago

1.4.3

4 years ago

1.2.0

6 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago