Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.