content-entry-transform
transform content entries
API
Table of Contents
createPropertiesTransformer
Creates a new transformer. On match the entry will be assigned new properties as given by propertyDefinitions.
Parameters
-
match
-
propertyDefinitions
Object -
name
(optional, default"property"
) -
matcher
Matcher
Returns Transformer
transform
Apply transformers.
Parameters
-
source
AsyncIterator<ContentEntry> -
transformers
Array<Transformer> (optional, default[]
) -
onlyMatching
install
With npm do:
npm install content-entry-transform
license
BSD-2-Clause