File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,11 +6,12 @@ YAML is a [complex spec](https://ruudvanasseldonk.com/2023/01/11/the-yaml-docume
66
77An ` npm install yaml ` weighs about 100kb of minified JavaScript.
88
9- This static site generator project tries to be as minimalistic as possible, but depends on YAML for
10- parsing frontmatter, which is a block of meta data in template files.
9+ SmolYAML is used in a static site generator that tries tries to be as minimalistic as possible.
10+ That static site generator depends on YAML for parsing frontmatter, a block of meta data in template files.
11+ But including the full YAML implementation would quite bloat it.
1112
1213SmolYAML tries to address that by implementing only a small subset of the specification. To be fair,
13- an opinionated one that is (opinionatedly) considered good enough to parse frontmatter meta data.
14+ it's an opinionated one that is (opinionatedly) considered good enough to parse frontmatter meta data.
1415
1516In roughly 2KB of minified JavaScript.
1617
@@ -21,7 +22,7 @@ npm i @sissijs/smolyaml
2122```
2223
2324``` js
24- import { smolYAML } from ' smolyaml' ;
25+ import { smolYAML } from ' @sissijs/ smolyaml' ;
2526
2627const metadata = `
2728name: Lea
You can’t perform that action at this time.
0 commit comments