0.1.2 • Published 8 months ago

trilium-etapi v0.1.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

Trilium ETAPI (TEPI)

A Node.js wrapper around the ETAPI for Trilium Notes. The library will continue to match the stable release of Trilium and release updates as needed.

Installation

npm install trilium-etapi

Usage

ESM (Preferred)

// tepi = Trilium Etapi Programming Interface
import tepi from "trilium-etapi";

tepi.server("https://my.trilium.com:8080/etapi").token(process.env.TRILIUM_TOKEN);
tepi.getNoteById("root").then(console.log).catch(console.error);

CommonJS

// tepi = Trilium Etapi Programming Interface
const tepi = require("trilium-etapi").default;

tepi.server("https://my.trilium.com:8080/etapi").token(process.env.TRILIUM_TOKEN);
tepi.getNoteById("root").then(console.log).catch(console.error);

Documentation

Documentation is available on GitHub Pages built with TypeDoc!

Links

Check out my other Trilium-based projects:

Want more? Be sure to check out the Awesome Trilium list!

0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago