css-unit-converter

WebJar for css-unit-converter

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

css-unit-converter
Last Version

Last Version

1.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

css-unit-converter
WebJar for css-unit-converter
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/andyjansson/css-unit-converter

Download css-unit-converter

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/css-unit-converter/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>css-unit-converter</artifactId>
    <version>1.1.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/css-unit-converter/
implementation 'org.webjars.npm:css-unit-converter:1.1.2'
// https://jarcasting.com/artifacts/org.webjars.npm/css-unit-converter/
implementation ("org.webjars.npm:css-unit-converter:1.1.2")
'org.webjars.npm:css-unit-converter:jar:1.1.2'
<dependency org="org.webjars.npm" name="css-unit-converter" rev="1.1.2">
  <artifact name="css-unit-converter" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='css-unit-converter', version='1.1.2')
)
libraryDependencies += "org.webjars.npm" % "css-unit-converter" % "1.1.2"
[org.webjars.npm/css-unit-converter "1.1.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

css-unit-converter Build Status

Converts CSS values from one unit to another

Installation

npm install css-unit-converter

Usage

var convert = require('css-unit-converter');
//convert 1 inch to pc
convert(1, 'in', 'pc'); // 6

//convert 10px to cm with a maximum of 10 decimals
convert(10, 'px', 'cm', 10); // 0.2645833333

Versions

Version
1.1.2
1.1.1