The package can be run both on node, or in browser (via packages such as
browserify). It also provides it's own type definitions, so if your using TypeScript you should be happy, too!
There are few examples on how to use this package, alongside the docs. If you seek to know what actions have what ID's in BetterTouchTool, you can check the typings definitions - I've written down lots of most important actions/triggers numeric IDs.
Let me know what you think about it!