getfrontmatter

1.0.1 • Public • Published

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()

Package Sidebar

Install

npm i getfrontmatter

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

3.1 kB

Total Files

5

Last publish

Collaborators

  • reergymerej