Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
FrontMeta is a minimalist front-matter format that uses key:value
pairs rather than YAML. This results in a parser that is optimized for both size and speed.
npm install frontmeta
import frontmeta from 'frontmeta';
Parse and stringify FrontMeta
FrontMeta.parse(frontmeta) : object
frontmeta
---
key1:value1
key2:value2
---
This is the document body.
import FrontMeta from '/path/to/frontmeta/index.js';
const frontmeta = // the document frontmeta
const parsed = FrontMeta.parse(frontmeta)
console.log(parsed);
> {
> "meta": {
> "key1": "value1",
> "key2": "value2"
> },
> "body": "This is the document body."
> }
FrontMeta.stringify(document) : object
key:value
datadocument
{
"meta": {
"key1": "value1",
"key2": "value2"
},
"body": "This is the document body."
}
import FrontMeta from '/path/to/frontmeta/index.js';
const document = // the frontmeta document object
const parsed = FrontMeta.stringify(document)
console.log(parsed);
> ---
> key1:value1
> key2:value2
> ---
> This is the document body.
A .cjs
bundle is included for CommonJS compatibility
const FrontMeta = require('frontmeta');
const frontmeta = // the document frontmeta
const data = FrontMeta.parse(frontmeta);
const FrontMeta = require('frontmeta');
const document = // the frontmeta document object
const data = FrontMeta.stringify(document);
Typings are generated from JSDoc using Typescript. They are 100% compatible with VSCode Intellisense and will work seamlessly with Typescript.
FAQs
Front-matter parser for key:value pairs
The npm package frontmeta receives a total of 3 weekly downloads. As such, frontmeta popularity was classified as not popular.
We found that frontmeta 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.