Install
Grid.js comes in two formats, UMD and ES module and also in production and development:
- gridjs.development.es.js
- gridjs.development.js
- gridjs.production.es.min.js
- gridjs.production.min.js
- theme/
Explore the project output on https://unpkg.com/browse/gridjs/dist/.
tip
You can either install Grid.js using NPM or directly include the JavaScript and CSS files from a CDN
#
Node.jsGrid.js is available as gridjs
on NPM. To install the package:
Above command will install all the dependencies as well. Then include both JavaScript and CSS files:
#
BrowserGrid.js is also available on following CDNs and can be used directly.
#
unpkgYou can download Grid.js from unpkg.com/browse/gridjs/dist.
Add both JavaScript and css files:
gridjs.production.min.js
theme/mermaid.min.css
You can also import the Grid.js ES module directly in the browser:
#
jsdelivrGrid.js is available on jsdelivr.com/package/npm/gridjs.
gridjs.production.min.js
theme/mermaid.min.css
Visit the Install page for more details.