Skip to content

escaladesports/extract-front-matter-properties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extract-front-matter-properties

Extract a single property from a glob of markdown files.

Installation

With npm:

npm install --save extract-front-matter-properties

Or with Yarn:

uarm add extract-front-matter-properties

Usage

var extract = require('extract-front-matter-properties')

// Async
extract('./**/*.md', 'id')
	.then(function(ids){
		console.log(ids)
	})
	.catch(console.error)

// Sync
var ids = extract('./**/*.md', 'id', { sync: true })
console.log(ids)

Why?

This was originally built for extracting all product IDs for a static site, but could have many more applications.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published