Squirrelly tries to follow best practices, and provides a UMD build to support most JS loading options, like ES modules, CommonJS, and AMD.
WARNING: THIS IS A BETA PRODUCT. There is a good chance these docs haven't been updated from v7 yet
- Browser (CDN)
npm install squirrelly --save
Or if you prefer Yarn:
yarn add squirrelly
Importing / Requiring
Sqrl is packaged as a UMD module, so you can require with CommonJS, import using ES Modules, or use AMD.
import * as Sqrl from 'squirrelly'// orvar Sqrl = require('squirrelly')