Installation
picasso.js
and the plugins picasso-plugin-hammer
, picasso-plugin-q
are
available on the public npm registry as npm packages and can be installed
through either npm or as a script import.
Script import
The easiest way to load the module is from a CDN like jsdelivr
:
<script src="https://cdn.jsdelivr.net/npm/picasso.js" crossorigin></script>
When imported using the script tag, it adds the variable picasso
to
the global namespace.
For production, it is recommended to use a specific version to avoid surprises from newer or breaking versions of the APIs:
<script src="https://cdn.jsdelivr.net/npm/picasso.js@1.0.0" crossorigin></script>
Npm or yarn
If you are building your own web project using Webpack, Rollup, Parcel, or similar you can install the package with npm:
npm install picasso.js
or yarn:
yarn add picasso.js
and then to use it:
import picassojs from 'picasso.js';