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.

Greetings

Tschaul

On 19.08.2016 16:05, JM wrote:
Hi,
One question on twister-lib-js - it appears to me that it is using node.js functions in there ( e.g. things like: return querystring.unescape(item) ) which makes using it on many browsers and VMs problematic. Am I just missing something?


On Monday, May 18, 2015 at 8:19:00 PM UTC-4, W-M Wijnja wrote:

    I really want to give you kudos for the clear way in which the
    examples are structured. Thank you very much for this great library!

    Op zondag 3 mei 2015 16:04:22 UTC+2 schreef julian.steinwachs:

        Hey,

        The twister javascript library that i've been working on over
        the last
        few weeks has now reached a state where it is worth checking
        out. I do
        not expect huge chances anymore to the functions that are exposed
        externally, so feel free to use the library in any project and
        let me
        know if you find bugs. The examples (in the /examples
        subdirectory) are
        written in the form of a tutorial to get familiar with the
        concepts of
        the library. If you want to help developing twister-lib-js
        please dive
        into the code and ask any stupid question you can think of in the
        github-issues. Pull-requests are always welcome, of course.

        Link to the project: http://github.com/Tschaul/twister-lib-js
        <http://github.com/Tschaul/twister-lib-js>

        Greetings

        Tschaul

--
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 [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to