Each released versions of GeoJS can be found on Github.
GeoJS is hosted on cdnjs. It can also be accessed via cdn.jsdelivr.net and unpkg.com. To use GeoJS, include one of the following lines in your HTML head:
<script src="https://cdnjs.cloudflare.com/ajax/libs/geojs/1.14.0/geo.min.js" integrity="sha512-UP9PPy450DGNsgZedRODl/TwPcLL+6Uoyzn05611NL36+BTXM7J9Higk6zhJCzfVcCVA8SBMfv11qmC0/AlW6g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
This will include minified version of GeoJS and its dependencies on your page. The integrity hash will make sure the integrity of the file.
npm install geojs |
This will install source code and built version GeoJS and it's optional dependencies to node_modules.
Once GeoJS is installed with npm, you could include GeoJS using as an ES6 module.
import geo from 'geojs'; |
Then you could use GeoJS with the variable geo
in your script.