Skip to main content
Home

latest

A data serialization language, and library, with support for functions.

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
64%
Published
6 months ago (0.1.1)

FlatMatter

A YAML-like data serialization language with support for functions. FlatMatter is considered feature-complete and is intentionally kept simple. Bug fixes and performance improvements are still made, of course.

Example FlatMatter:

title: "My Blog"
last_updated: (get-content "posts") / (limit 1) / (get "published_at") / (date "YYYY-mm-dd")
posts: "posts" / get-content

FlatMatter aims to be more-or-less syntactically compatible with YAML for the simple reason of not needing new editor plugins to have syntax highlighting, but it differs in that there is no indentation, but instead dots to indicate hierarchy, like site.title which would result in a site object that contains the title key.

FlatMatter also supports functions, allowing you to build your own data DSL, and functions can also be piped with the forward slash / character, meaning that the result of the left operation will be passed as the first argument of the next function, and so on, to produce an end result.

Install

To be written ...

Usage

To be written ...

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@asko/flatmatter

Import symbol

import * as flatmatter from "@asko/flatmatter";
or

Import directly with a jsr specifier

import * as flatmatter from "jsr:@asko/flatmatter";

Add Package

pnpm i jsr:@asko/flatmatter
or (using pnpm 10.8 or older)
pnpm dlx jsr add @asko/flatmatter

Import symbol

import * as flatmatter from "@asko/flatmatter";

Add Package

yarn add jsr:@asko/flatmatter
or (using Yarn 4.8 or older)
yarn dlx jsr add @asko/flatmatter

Import symbol

import * as flatmatter from "@asko/flatmatter";

Add Package

vlt install jsr:@asko/flatmatter

Import symbol

import * as flatmatter from "@asko/flatmatter";

Add Package

npx jsr add @asko/flatmatter

Import symbol

import * as flatmatter from "@asko/flatmatter";

Add Package

bunx jsr add @asko/flatmatter

Import symbol

import * as flatmatter from "@asko/flatmatter";