https://github.com/abruneau/apple-notes-jxa
Simple module to read, edit, and manage Apple Notes throught JXA (offline)
https://github.com/abruneau/apple-notes-jxa
applescript jxa nodejs
Last synced: 3 months ago
JSON representation
Simple module to read, edit, and manage Apple Notes throught JXA (offline)
- Host: GitHub
- URL: https://github.com/abruneau/apple-notes-jxa
- Owner: abruneau
- Created: 2017-10-02T13:16:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-21T15:36:53.000Z (over 7 years ago)
- Last Synced: 2025-03-09T08:15:35.483Z (4 months ago)
- Topics: applescript, jxa, nodejs
- Language: TypeScript
- Homepage: https://abruneau.github.io/apple-notes-jxa/
- Size: 137 KB
- Stars: 49
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Apple Note JXA
===================Simple module to read, edit, and manage Apple Notes throught JXA (offline)
## Using this module in other modules
Here is a quick example of how this module can be used in other modules. The [TypeScript Module Resolution Logic](https://www.typescriptlang.org/docs/handbook/module-resolution.html) 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.
- To use in TypeScript file -
```ts
import * as Notes from "apple-notes-jxa";Notes.accounts()
.then((accounts) => console.log(accounts));
```- To use in a JavaScript file -
```js
const Notes = require('apple-notes-jxa');Notes.accounts()
.then((accounts) => console.log(accounts));
```