1.6.0 • Published 3 years ago

@wyas/units v1.6.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

This is a group of pipes and components that deal with unit conversions for Angular.

To use these pipes, add the following code to the module you are using:

import {{ WyasUnitPipesModule }} from '@wyas/units'

In your HTML, use this format:

{{ value | pipeName:start:finish:round }}

In the above code, start is the value you are converting from, finish is the value you are converting to, and round is the amount of decimals you want to round to (this is optional, default is 2). Here's an example:

{{ value | wyas_temp:"F":"C":5 }}

Pipes

Some of the symbols in the previous table allow prefixes from the Metric system (centi-, milli-, etc.). These symbols include:

  • "m" - meters
  • "s" - seconds

To use prefixes with these symbols, add the following letter(s) to the beginning of each symbol:

  • "k" - kilo

  • "c" - centi

  • "m" - milli

  • "da" - deca

  • "d" - deci

  • "h" - hecto

  • "μ" - micro

  • "n" - nano

  • "p" - pico

  • "f" - femto

  • "a" - atto

  • "z" - zepto

  • "y" - yocto

  • "M" - mega

  • "G" - giga

  • "T" - tera

  • "P" - peta

  • "Em" - exa

  • "Z" - zetta

  • "Y" - yotta

1.6.0

3 years ago

1.5.8

3 years ago

1.5.7

3 years ago

1.5.5

3 years ago

1.5.6

3 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.5.0

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.9

4 years ago

1.2.10

4 years ago

1.2.11

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago