A simple file-based content manage system driven by Node.js, inspired by Hexo and its core Warehouse.
Note: This project is still under development. DO NOT USE THIS PROJECT IN PRODUCTION.
// npm
$ npm install noutious
// yarn
$ yarn add noutious
// pnpm
$ pnpm add noutious
Then import it and initialize an instance.
import { createNoutious } from 'noutious';
const noutious = await createNoutious({
draft: false, // set to `true` to scan draft posts.
excerptMark: ''
})
// Get all posts data
const posts = await noutious.queryBlogPosts();
// Get all categories
const posts = await noutious.queryBlogCategories();
// Get all tags
const posts = await noutious.queryBlogTags();
Other APIs are still waiting for development.