extract-front-matter-properties

1.0.3 • Public • Published

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.

Package Sidebar

Install

npm i extract-front-matter-properties

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

255 kB

Total Files

17

Last publish

Collaborators

  • amadoa
  • dalewray
  • codevelopit
  • mastaaaron
  • escasports
  • tbaustin
  • ken85rose