trilium-etapi
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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!

Package Sidebar

Install

npm i trilium-etapi

Weekly Downloads

43

Version

0.1.2

License

Apache-2.0

Unpacked Size

80.4 kB

Total Files

13

Last publish

Collaborators

  • zerebos