New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@qudtlib/allunits

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qudtlib/allunits

Package containing all QUDT units, quantityKinds, and prefixes

  • 2.0.0-preview2
  • npm
  • Socket score

Version published
Weekly downloads
1K
increased by33.81%
Maintainers
1
Weekly downloads
 
Created
Source

All QUDT units for qudtlib

This package provides all units, quantitykinds and prefixes defined by the QUDT ontology, based on @qudtlib/core.

All units, QuantityKinds and Prefixes are accessible as constants on the Units, QuantityKind and Prefixes objects:

const meter = Units.M;
const length = QuantityKinds.Length;
const giga = Prefixes.Giga;

The package re-exports @qudtlib/core. The package functionality is mainly accessed through the Qudt object and through individual Unit and (to a lesser extent) QuantityKind and Prefix instances. Quick examples:

// instantiate unit from its IRI:
let meterUnit = Qudt.unit("http://qudt.org/vocab/unit/M");
// instantiate unit from its label:
meterUnit = Qudt.unitFromLabel("Meter");
// convert Meter to Feet:
const feet = Units.M.convert(new Decimal(1), Units.FT);

More examples can be found in the package's unit tests.

For more documentation on the core features, refer to the @qudtlib/core package README.

Keywords

FAQs

Package last updated on 14 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc