
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
assemble-front-matter
Advanced tools

Utilities for extracting front matter from source files.
Visit Assemble's documentation for many more examples and pointers on getting started.
npm install assemble-front-matter --save
and use it as follows:
var yfm = require('assemble-front-matter');
Extract YAML front matter and content from files.
var raw = yfm.extract("./file.hbs", opts);
Parameters:
String: The file to read.Object: The options object to pass to js-yamlReturns:
Object with three properties
{
"context": {} // Object. YAML front matter returned as a JSON object.
"content": "" // String. File content, stripped of YAML front matter
"originalContent": "" // String. Both content and YAML front matter.
}
Return YAML front matter as a JSON object.
var data = yfm.extract("./file.hbs").context;
Alias:
var data = yfm.extractJSON("./file.hbs");
Return the content of a file, with YAML front matter removed.
var content = yfm.extract("./file.hbs").content;
Alias:
var data = yfm.stripYFM("./file.hbs");
Copyright (c) 2013 Brian Woodward, contributors. Released under the MIT license
This file was generated on Mon Sep 02 2013 09:44:51.
FAQs
Utilities for extracting front matter from source files.
We found that assemble-front-matter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.