Mk Notes
Advanced guides

Programmatic usage

Reference guide to use Mk Notes programmatically

Mk Notes can be used programmatically in your Javascript/Typescript projects.


The library exposes a MkClient class that allows you to use the main functionalities of Mk Notes directly inside you code.

import { MkClient } from 'mk-notes';

const client = new MkClient({
  notionApiToken: 'YOUR_NOTION_SECRET',
});

client.previewSynchronization({ inputPath: './notes/' }).then(console.log);