mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 17:29:31 +08:00
35 lines
No EOL
870 B
Text
35 lines
No EOL
870 B
Text
# FFF Flavored Frontmatter
|
|
|
|
🌟 Yet Another Opinionated Frontmatter Variable Specs.
|
|
|
|
## Installation
|
|
|
|
> Pls confirm the version you need before installing, or always keep the latest version.
|
|
|
|
```bash
|
|
pnpm add -D fff-flavored-frontmatter # pnpm
|
|
yarn add fff-flavored-frontmatter # yarn
|
|
npm i -D fff-flavored-frontmatter # npm
|
|
```
|
|
|
|
## Usage
|
|
|
|
Use in a ESM + TypeScript Node.js project:
|
|
|
|
```ts
|
|
import type { FFFFlavoredFrontmatter } from 'fff-flavored-frontmatter'
|
|
// import type { FFFBase, FFFExtra } from 'fff-flavored-frontmatter' // if you need them
|
|
// import type { FFFImage, FFFAudio, FFFVideo, FFFAuthor } from 'fff-flavored-frontmatter' // if you need them
|
|
```
|
|
|
|
CJS is also supported.
|
|
|
|
```ts
|
|
const { FFFFlavoredFrontmatter } = require('fff-flavored-frontmatter')
|
|
```
|
|
|
|
Or Deno?
|
|
|
|
```ts
|
|
import type { FFFFlavoredFrontmatter } from "https://deno.land/x/fff/fff.ts";
|
|
``` |