node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป



React components for OpenLayers.


Install Node 8+ (use nvm to manage multiple versions of Node). Install dependencies with npm:

npm install

To work with the docs during development:

npm start

Docs are build with npm run build:docs and hosted here:

To publish package changes to another local project, use the npm run local-pub script. This will start a file watcher, rebuild the package on src changes, and copy the result to the node_modules directory of another project. For example:

npm run local-pub -- ../other-project

Note that this requires that the target project has all of this project's dependencies installed.