TiddlyWiki doesn't have a mechanism to include npm modules from the node 
modules folder. If you use the node version and the modules are used 
server-side than it can work but packaging them into the single html file 
version takes a bit more work.

The largest concern with a lot of npm modules is if they can be used by a 
browser or not, but assuming so than the easiest way is to include them 
with tiddlywiki.files files. There are a few examples of this in some of 
the plugins in the GitHub repo, one example is 
here: 
https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/jszip/files

an explanation of what .files files do is on tiddlywiki.com 
here https://tiddlywiki.com/#tiddlywiki.files%20Files

One problem that I have run into with some modules is when they have 
relative paths in a require, in that case you may have to do some extensive 
re-writes to make anything work.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a96435e9-b96f-4b5b-9de5-11b31cb0b87b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to