With the danger of fragmentation due to the fork in Node, how can I make sure a “Node” project will run across both Node and its fork?
The hope is that they will join together again once Joyent and the creators of io.js resolve their differences but one cannot hope that this will definitely be the case. So as a node contributor it would make sense to bet on both options and having your codebase require less maintenance if the fork does become a long term one.
4
The same way you always do when trying to make a program “platform independent”:
-
you try to use only features available on both platforms
-
you provide different implementations for functions where this not possible, and switch between the implementation by detecting which platform you are using
-
and the most important step: you test it on both platforms
The likely problem is if you adopt IOjs your code (if you are using newer features) will only work there. It will not work on node (v10x)…unless you stick to es5.
15