Simple module to read, edit, and manage Apple Notes throught JXA (offline)
Here is a quick example of how this module can be used in other modules. The TypeScript Module Resolution Logic makes it quite easy. The file src/index.ts
acts as an aggregator of all the functionality in this module. It imports from other files and re-exports to provide a unified interface for this module. The package.json file contains main
attribute that points to the generated lib/index.js
file and typings
attribute that points to the generated lib/index.d.ts
file.
import * as Notes from "@parser-libs/apple-notes-jxa";
Notes.accounts()
.then((accounts) => console.log(accounts));
const Notes = require('@parser-libs/apple-notes-jxa');
Notes.accounts()
.then((accounts) => console.log(accounts));
Generated using TypeDoc