Hi,
browserify is used, or rather can be used for bundeling (http://browserify.org/)
which comes with browser compatible modules for the node.js own
stuff. Some of them however sometimes show strange behavior. That
is why for example for the http-requests the twister-lib-js uses
jquery if present and falls back to node.js own module if not
(https://github.com/Tschaul/twister-lib-js/blob/master/src/TwisterResource.js#L212).
The browserified bundle still works without jquery but e.g. CORS (https://de.wikipedia.org/wiki/Cross-Origin_Resource_Sharing)
does not work. So twister-lib-js is "isomorphic": it runs in
node.js the same way as in browsers.
--
You received this message because you are subscribed to the Google Groups "twister-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to twister-dev...@googlegroups.com.
To post to this group, send email to twist...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Download the twister-lib.js file into you project folder. Link to it inside html using
<script src="path/to/twister-lib.js"></script>
[from here: https://github.com/Tschaul/twister-lib-js ]