
Security News
CISA Rebuffs Funding Concerns as CVE Foundation Draws Criticism
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
a simple library for sorting and filtering through a directory of front-matter parsed markdown files
Kodex walks a directory of markdown files, parses them as front-matter, and generates a simple API for accessing those files.
The main focus is to provide sorting and filtering methods for (but not limited to) blog posts. The service can be used in any number of ways. Wrap a RESTful API around it, or utilize it during static generation (plays nicely with Nuxt.js).
Features:
Planned:
./posts/hello-world.md
:
---
title: Hello, world!
date: 4/20/2017
tags: [javascript, kodex.js]
---
This is an example markdown.
Currently, the date
attribute is the only required front-matter attribute. title
and tags
are optional attributes.
let Kodex = require('kodex')
let postKodex = new Kodex(path.join(__dirname, 'posts'))
var helloWorldEntry = postKodex.get('hello-world')
.get(filename)
Gets an entry by filename
Returns: Object
.search(term)
Searches for files where filename contains term
Returns: Array
.recent(count)
Gets n most recent entries (sorted by date descending)
Returns: Array
.allTags()
Scrapes all tags from files
Returns: Array
.findWithTag(tagName)
Gets all files that have the specified tag
Returns: Array
Caveats:
FAQs
a simple library for sorting and filtering through a directory of front-matter parsed markdown files
The npm package kodex receives a total of 2 weekly downloads. As such, kodex popularity was classified as not popular.
We found that kodex demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.