Registry / f0-content-parser

f0-content-parser

JSON →
library1.0.3-devjsnpmunverified

A minimal content parser library for F0 format, version 1.0.3-dev. It provides a single function `parseContent` to parse string content. The package is pre-release, with no stable release cadence. It depends on `keymirror` and is intended for use in JavaScript projects with ES6 syntax. Its main differentiator is simplicity and niche focus on F0 content parsing.

Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

The module exports a named function, not a default export.

import { parseContent } from 'f0-content-parser'

CommonJS require returns an object with the named export, not the function directly.

const { parseContent } = require('f0-content-parser')

Require statement must destructure the named export.

import { parseContent } from 'f0-content-parser'; console.log(parseContent('your content here'));

Demonstrates importing and using parseContent to parse a simple F0 content string.

import { parseContent } from 'f0-content-parser'; const sampleContent = ` key1: value1 key2: value2 `; console.log(parseContent(sampleContent)); // Expected output: { key1: 'value1', key2: 'value2' }
Debug
Known footguns
gotchaPackage version is 1.0.3-dev, indicating it is a pre-release. APIs may change without notice.
deprecatedThe dependency `keymirror` is a legacy library. Consider using modern alternatives like Object.fromEntries or manual mapping.
gotchaparseContent expects a specific F0 content format. Invalid or malformed input may return unexpected results or throw errors.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
5 hits · last 30 days
ahrefsbot
4
script
1
Resources