Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

krypa

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

krypa

Front matter sitemap generator.

Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

krypa

Recursively walk through a directory and construct a front matter sitemap.

Install

npm install krypa

Getting Started

var krypa = require('krypa');
var hm = require('hjson-matter');

var sitemap = krypa('./src/pages/**/*.{html,md}', {
  base: './src/pages',
  parser: hm
});

Usage

krypa(globs, options)

globs

Type: string, array

Glob or array of globs for the files to incorporate into the sitemap.

options

base

Type: string

The directory to serve as the starting point for the sitemap.

parser

Type: function

The parser to extract the front matter from a file. It should return with property data containing the front matter.

Keywords

front matter

FAQs

Package last updated on 27 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts