This are working example for the BehaviorTree.js lib.
In the es6/ folder you find an example using new ES modules syntax. This uses babel for transpiling which, of course, can be used within a browser via webpack. Or in node via babel-node provided by babel-cli.
Try it out like this:
cdes6yarnnpxbabel-nodeexample.jsIn the nodejs folder you find an example that can be used within simple node.js environments.
Try it out like this:
cdnodejsyarnnodeexample.js