# archived-node-ssbl **Repository Path**: mirrors_rvagg/archived-node-ssbl ## Basic Information - **Project Name**: archived-node-ssbl - **Description**: Super-simple blog loader. Load markdown formatted blog files from a folder as a handy data structure for rendering - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Super Simple Blog Loader [](https://github.com/rvagg/ssbl/actions/workflows/test-and-release.yml) [](https://nodei.co/npm/ssbl/) Load markdown formatted blog files from a folder as a handy data structure for rendering. Each file represents a post. Post metadata is stored in JSON at the head of each file (complete with optional backticks if you want it nicely viewable on GitHub). ## Installation ```bash npm install ssbl ``` ## Example Given two files in a directory: ### myfirstpost.md ``` { "author" : "Rod Vagg" , "date" : "2012-10-01" , "title" : "My first post!" } This is my first post on my blog! How'd you like it? ### It's in Markdown too! You can put **Markdown** in your *posts* and [links](https://github.com/rvagg/ssbl) too! ``` ### w00t.md ``` { "author" : "Rod Vagg" , "date" : "2013-10-01" , "title" : "Sorry..." } So... it turns out I'm not so great at this blogging thing and I haven't posted in a year so I might just give up eh? ``` And the following code: ```js import ssbl from 'ssbl' const data = await ssbl('./example') console.log(JSON.stringify(data, null, 2)) ``` You'll see this: ```json [ { "spec": { "author": "Rod Vagg", "date": "2013-10-01T00:00:00.000Z", "title": "Sorry..." }, "page": "
So... it turns out I'm not so great at this blogging thing and I haven't posted in a year so I might just give up eh?
\n" }, { "spec": { "author": "Rod Vagg", "date": "2012-10-01T00:00:00.000Z", "title": "My first post!" }, "page": "This is my first post on my blog! How'd you like it?
\nYou can put Markdown in your posts and links too!
\n" } ] ``` What you do with it from there is up to you. The data structure is ideal for passing through a templating engine. This example is in the [example](./example/) directory. ## API ### `ssbl(path)` Returns a `Promise