New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rasta

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rasta

Multiple pages with metadata from a folder of markdown files

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

rasta

Give rasta a folder of markdown files with yaml headers and you'll get back markdown with some metadata, thanks to meta-marked.

Add the module to your site

npm install rasta

Use files like markdown + yaml:

Just include a simple section of yaml at the header of each bio, fenced in with three dashes above and three dots below.

Whatever associated content you'd like associated with that metadata goes below that.

Like so:

---
name: Andrew Ryan
title: Chief Bio Officer
slug: andy
image: /images/andy.png
...

Here's my cool content!

Then you can do some stuff like this:

var Rasta = require('rasta');

var rasta = new Rasta(__dirname + '/team');

var allTheThings = rasta.all();

console.log(allTheThings);

var justOneOfTheThings = rasta.getBySlug('some-url-slug');

console.log(justOneOfTheThings);

Maybe you'd like an example?

Then check out the example!

That's it!

And that's it! Now you're cooking with rasta!

(I don't think that's a thing though.)

Keywords

FAQs

Package last updated on 14 Dec 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc