I have a node.js app that is using TiddlyWiki and tiddlers as a database. Currently clone tiddlywiki5.git into a sub-directory of the app and start it up
// Access to TiddlyWiki functions - boot, utils, Tiddler, and Wiki
const $tw = require('./tiddlywiki/boot/boot.js').TiddlyWiki();
// Pass the command line arguments to the boot kernel
$tw.boot.argv = ['--version'];
$tw.boot.boot(() => {
console.log('TiddlyWiki loaded');
})
So have a ‘$tw.wiki’ with the core, add, delete, functions, and cool stuff!
If I were to set tiddlywiki as a dependency in my package.json would I have to go thru ‘node_modules/tiddlywiki’ to get to boot.js? … or is there a better way of loading a somewhat bare tiddlywiki that has modules loaded, Tiddler, and Wiki instances all setup?
Any pro/cons/issues on using TiddlyWiki in this way - (without a DOM) would be appreciated.