0.10.0 • Published 1 year ago

@terezatech/zettel v0.10.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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();
})();