I want to use the basil package with browserify to manage cookies.
npm install --save basil and that worked OK.
Now I am trying this in my JS:
require('basil'); var basil = new window.Basil();
But this fails with
Uncaught TypeError: undefined is not a function.
What should I do instead?
I've tried this too, just guessing:
var Basil = require('basil'); var basil = new window.Basil();
How am I supposed to know how to include it?