could you include an example of importing a function from a script in the README?
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 42/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- documentation
Research direction
Start with the README and review how js-engine currently loads scripts. Use the reported nifty-links.js path and its exported getFromOpenGraph(url) function as the example, including the expected rendered HTML result and the related CSS path. Done means a newcomer can follow the README to reproduce this setup.
Written by the indexing model from the issue text.
Description
Hi,
I'm trying to write modular JavaScript and have one file for each script. It's not working out for me ;)
I'll explain more, but pretty sure it would be helpful just to show how it would work in your readme.
Okay I have nifty-links.js
vault/js/scripts/nifty-links
that has an exported function called "getFromOpenGraph(url)"
I have a nifty-links.css
./obsidian/snippets/nifty-links.css
This all works using a basic liveserver in a browser.
I want to use js-engine to call that function and pass it a URL, and then what should come back is rendered HTML.
- Dominant language
- TypeScript
- Stars
- 191
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mProjectsCode/obsidian-js-engine-plugin
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
mProjectsCode/obsidian-js-engine-plugin#50 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
mProjectsCode/obsidian-js-engine-plugin#32 · 7 comments ·
All issues in mProjectsCode/obsidian-js-engine-plugin
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
mksglu/context-mode#1200 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anthropics/claude-code#96687 ·
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
AOSSIE-Org/DebateAI#582 · 2 comments ·