1.5.4 • Published 1 year ago

@mimik/lib-filters v1.5.4

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
1 year ago

lib-filters

Example

const libFilters = require('@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.
1.5.4

1 year ago

1.5.3

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

2.0.0

1 year ago

1.4.9

2 years ago

1.4.8

2 years ago

1.4.7

2 years ago

1.4.6

2 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

6 years ago

1.0.2

7 years ago

1.0.0

7 years ago