starter
starter copied to clipboard
Possible node design ....
Possible node design .... In parent package:
require 'webforth'; // defines a "forth" global
require 'foo' // where foo is defined in package.json to be a .js file
forth.load('https://bar.com/foo.f') // Load a forth file. Relative to current URL (e.g. could be a file or HTTP etc)
In forth package something like
forth = { m, c, x, load }
export forth
Originally posted by @mitra42 in https://github.com/mitra42/webForth/issues/23#issuecomment-698849542