Provides unit conversion and related functionality for Javascript (Typescript).
Makes all conversions and related functionality defined by the excellent QUDT ontology
Packages:
- @qudtlib/allunits (npm): contains all units (and other stuff) from QUDT (you probably want this)
- @qudtlib/core (npm): contains the library's functionality and data model
- @qudtlib/examples (not published on npm)]: usage examples based on @qudtlib/allunits.
This monorepo project is built with lerna.
At the top level of the project, do
npm run build-complete
If this build succeeds, the packages @qudtlib/core
and @qudtlib/allunits
are ready to be published.
To fix code style issues reported during the build, do
npm run format-apply
The file allunits/src/units.ts
is generated by qudtlib-java/qudtlib-js-gen
. For this reason, that project includes
the qudtlib-js
project (i.e. this project) as a git submodule. By default, a maven build of qudtlib-java
generates
the units file, which should be pushed if it has changes.