Skip to content

arlac77/content-entry-transform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm License bundlejs downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

content-entry-transform

transform content entries

API

Table of Contents

createExpressionTransformer

Transformer expanding '{{}}' expressions

Parameters

createPropertiesTransformer

Creates a new transformer. On match the entry will be assigned new properties as given by propertyDefinitions.

Parameters

  • match
  • propertyDefinitions Object
  • name string (optional, default "property")
  • matcher Matcher

Returns Transformer

transform

Apply transformers.

Parameters

  • source AsyncIterable<ContentEntry>
  • transformers Array<Transformer> (optional, default [])
  • onlyMatching boolean filter out all none matching entries

install

With npm do:

npm install content-entry-transform

license

BSD-2-Clause