1.0.1 • Published 3 years ago

getfrontmatter v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

getfrontmatter

Answer a couple prompts and get the front matter for a jekyll post.

Example

./bin/main
prompt: Blog title:  Hey, now.  We're the monkeys!
prompt: tags (comma-separated):  monkey, business, bananas
---
layout: post
title:  "Hey, now.  We're the monkeys!"
date:   2021-07-05 20:00:00 -0400
categories: blog
tags:
  - monkey
  - business
  - bananas
---

Installation and Usage

Global

npm i --global getfrontmatter
getfrontmatter

Local

npm i --save getfrontmatter

import getfrontmatter from 'getfrontmatter'
getfrontmatter()