
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
hjson-matter
Advanced tools
Extract HJSON front matter from a string.
HJSON is a human-friendly superset of JSON that has some sweet syntactic sugars and multiline strings, which is great! Don't worry, it's not going to overthrow JSON and, yes, we shouldn't encourage developers to slack off in writing proper code with proper commas. However, there are some use cases where HJSON just makes sense. For instance, I think it's a nicer (easier) markup for front matter than YAML when using templating libraries.
npm install hjson-matter
var hm = require('hjson-matter');
var fs = require('fs');
var file = fs.readFileSync('./some-file.html');
var content;
// pass in file contents as a String
content = hm(file.toString());
// pass in file contents as a Buffer
content = hm(file);
// specify a delimiter
content = hm(file, {delimiters: '***'});
// specify two different delimiters
content = hm(file, {delimiters: ['***', '@@@']});
FAQs
Front-matter parser for HJSON.
The npm package hjson-matter receives a total of 2 weekly downloads. As such, hjson-matter popularity was classified as not popular.
We found that hjson-matter 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.