Skip to content

importantimport/fff

The Flexible & Functional Frontmatter Solution.


πŸ“¦οΈ Packages

npm minified size downloads deno.land

Type definition of the FFF Flavored Frontmatter.

import type { FFFFlavoredFrontmatter } from 'fff-flavored-frontmatter'

npm minified size downloads

Predefined transform presets for FFF Flavored Frontmatter.

import { transform } from 'fff-flavored-frontmatter'
import { hexo } from 'fff-transform-presets'

fm = transform(fm, [hexo])

npm minified size downloads

Remark plugin for auto-conversion other frontmatter variable formats to FFF Flavored Frontmatter.

import remarkFFF from 'remark-fff'
import { hexo } from 'fff-transform-presets'

export default defineConfig({
  remarkPlugins: [[remarkFFF, { presets: [hexo], target: 'astro' }]],
})

npm minified size downloads

markdown-it plugin for auto-conversion other frontmatter variable formats to FFF Flavored Frontmatter.

import MarkdownIt from 'markdown-it'
import { frontmatterPlugin } from '@mdit-vue/plugin-frontmatter'
import { fffPlugin } from 'markdown-it-fff'

const md = MarkdownIt().use(frontmatterPlugin).use(fffPlugin)

npm minified size downloads

FFF Flavored Frontmatter publication preset for Indiekit.

{
  "indiekit-preset-fff": {
    "format": "yaml",
    "types": "urara"
  },
  "plugins": ["indiekit-preset-fff"]
}

npm minified size downloads

pnpm create fff netlify-cms

πŸ“„ License

This work is free, it comes without any warranty. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details.