Installing

Install Anywhere (npm)

If you use Node.js, you can install BramblDart using npm by running npm install -g brambldart

However, please note that this will install the pure JavaScript implementation of BramblDart, which runs somewhat slower than the other options listed here. But it has the same interface, so it'll be easy to swap in another implementation later if you need a bit more speed!

Once you have run the above command, don't forget to require() it as a library!

When install via npm, BramblDart supports a Javascript API that aims to be compatible with Node. Full compatibility is a work in progress.

Dart Library

You can also use BramblDart as a Dart package to get the speed of the Dart VM plus the ability to extend functions. To add it to an existing project:

1.) Install the Dart SDK. Make sure that its bin directory is on your path.
2.) Create a pubspec.yaml file like this:

name: my_project
dev_dependencies:
    brambldart: ^x.y.z

3.) Run dart pub get

4.) Learn more about writing Dart code (it's easy!)