This package has been deprecated

Author message:

Deprecated due to low usage

@cognite/units
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published
Cognite logo

@cognitedata/units

codecov

The @cognitedata/units is a library that will enable to do units conversion in an easier manner. To check what conversions are available see Dictionaries.

Getting Started

Samples

const input_unit = "ft3/s"
const output_unit = "US_bbl_oil/d"
const res = Number(converter.unitConvert(1, input_unit, output_unit).toPrecision(6))
console.log(`converted unit: \n ${res}`);

More examples can be found at the tests file

Contributing

Contributions welcome! For details about commiting changes, automated versioning and releases, see Contributing.

Testing

Run tests:

npm install
npm test

We use jest to run tests, see their documentation for more information.

Versioning

The libraries follow Semantic Versioning. Package versions are updated automatically and individually based on commit messages.

Readme

Keywords

none

Package Sidebar

Install

npm i @cognite/units

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

75.8 kB

Total Files

22

Last publish

Collaborators

  • cognitecicd
  • npmwatchtower