@terezatech/zettel
v0.10.0
Published
This package provides a engine to handle your Zettelkasten notes.
Downloads
4
Readme
Zettel
This package provides a engine to handle your Zettelkasten notes.
Installation
yarn add @terezatech/zettel
Quick start
Create your Zettelkasten notes in a folder, for example posts
, then instantiate your Zettelkasen engine:
import { Zettelkasten } from '@terezatech/zettel';
import * as path from 'path';
const postsDir = path.join(__dirname, 'posts');
const zettelkasten = new Zettelkasten({ postsDir });
(async () => {
const posts = await zettelkasten.getPosts();
const blogPost = await zettelkasten.getPosts({ groups: ['blog'] });
const tags = await zettelkasten.getTags();
})();