
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Parse front matter extracted from yufrontin
$ npm install parse-yuf
file: kmx/test/one.hbs
---
title: one
layout: default
description: This is a test. This is only a test
tags: ['apple', 'orange', 'pear']
---
This is one.
extended options: sync and async versions
var parsefm = require('parse-yuf')
var syncExtend = parsefm.sync('kmx/test/one.hbs', {extend: true})
console.log(syncExtend)
// or
parsefm('kmx/test/one.hbs', {extend: true}, function (err, res) {
assert.ifError(err)
console.log(res)
})
// results in -->
{ abs: '/Volumes/BigStor/Developer/web/sites/testproj949/kmx/test/one.hbs',
rel: 'kmx/test/one.hbs',
file:
{ root: 'testproj949',
dir: 'kmx/test',
base: 'one.hbs',
ext: '.hbs',
name: 'one' },
stats:
{ dev: 16777242,
mode: 33188,
nlink: 1,
uid: 501,
gid: 20,
rdev: 0,
blksize: 4096,
ino: 3441487,
size: 137,
blocks: 16,
atime: Thu Sep 17 2015 09:22:26 GMT-0400 (EDT),
mtime: Tue Sep 15 2015 12:33:08 GMT-0400 (EDT),
ctime: Tue Sep 15 2015 12:33:08 GMT-0400 (EDT),
birthtime: Tue Sep 01 2015 17:02:30 GMT-0400 (EDT) },
data:
{ title: 'one',
layout: 'default',
description: 'This is a test. This is only a test',
tags: [ 'apple', 'orange', 'pear' ] },
content: '\nThis is one.\n' }
vanilla readFile sync and async versions:
var syncPlain = parsefm.sync('kmx/test/one.hbs')
console.log(syncPlain)
// or
parsefm('kmx/test/one.hbs', function (err, res) {
assert.ifError(err)
console.log(res)
})
// results in -->
{ data:
{ title: 'one',
layout: 'default',
description: 'This is a test. This is only a test',
tags: [ 'apple', 'orange', 'pear' ] },
content: '\nThis is one.\n' }
parse(filepath[, options], callback)
parse.sync(filepath[, options])
FAQs
Parse front matter extracted from yufrontin
The npm package parse-yuf receives a total of 0 weekly downloads. As such, parse-yuf popularity was classified as not popular.
We found that parse-yuf 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.