Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/S73ph4n/joplin_automate_notes
Joplin plugin to automate notes with javascript
https://github.com/S73ph4n/joplin_automate_notes
Last synced: 2 months ago
JSON representation
Joplin plugin to automate notes with javascript
- Host: GitHub
- URL: https://github.com/S73ph4n/joplin_automate_notes
- Owner: S73ph4n
- Created: 2020-11-21T18:28:24.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-08T11:24:36.000Z (about 3 years ago)
- Last Synced: 2024-08-03T02:03:01.007Z (6 months ago)
- Language: TypeScript
- Size: 454 KB
- Stars: 32
- Watchers: 2
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-joplin - Automate notes with JS
README
# Automate notes with JS
Finds blocks of javascript in the current note (blocks have to start with "\```javascript" and end with "\```") and runs it as a function. Writes whatever it returns in a "results" block right under your code.
This only works on notes with a title starting with "[Run]", so you don't end up running all the example javascript snippets you have stored somewhere.
This plugin is experimental and comes with absolutely no warranty of any kind. Use at your own risk.
![](demo_screenshot.png)
## Joplin Plugin
The main two files you will want to look at are:
- `/src/index.ts`, which contains the entry point for the plugin source code.
- `/src/manifest.json`, which is the plugin manifest. It contains information such as the plugin a name, version, etc.The plugin is built using webpack, which create the compiled code in `/dist`. The project is setup to use TypeScript, although you can change the configuration to use plain JavaScript.
## Building the plugin
To build the plugin, simply run `npm run dist`.