Wijmo is represented on npm with the wijmo package. As with any npm package, you need to have NodeJS installed on your computer to use it.
The latest wijmo release version can be installed from npm by executing the following command from the NodeJS command prompt:
npm install wijmo
In addition to release builds, we also publish release candidate (RC) and nightly builds. RC and nightly builds are meant for testing only and should not be used in production.
To install the latest RC build, use this command:
npm install wijmo@rc
To install the latest nightly build, use this command:
npm install wijmo@nightly
Wijmo package contains JavaScript modules in CommonJS format. You can use them along with tools that are capable of loading modules, like the Webpack bundler or SystemJS run-time module loader.
To import Wijmo modules into your application backed by TypeScript or Babel you can use ES2015 import statements. All module names in import statements begin with the "wijmo/" prefix, followed by the module name. For example, the following code imports the "wijmo.grid" module and creates an instance of the FlexGrid control:
import * as wjcGrid from 'wijmo/wijmo.grid';
let grid = new wjcGrid.FlexGrid('#hostElement');
If you write code in ES5 then the CommonJS require() function can be used to import modules. For example:
var wjcGrid = require('wijmo/wijmo.grid');
var grid = new wjcGrid.FlexGrid('#hostElement');
Please see our Using Wijmo with NPM article for more details on how Wijmo npm modules can be used along with popular development tools like Angular CLI, create-react-app, Vue CLI, and Ionic CLI.