# metricjs

> A unit of measurement converter for javascript

Latest version **1.0.1** (published 2016-07-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install metricjs
pnpm add metricjs
yarn add metricjs
bun add metricjs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-07-12 |
| First published | 2016-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 29 |
| Author | Ian Ramos |
| Maintainers | ianramosc |
| Keywords | converter, unit of measurement |

## Links

- npm: https://www.npmjs.com/package/metricjs
- Repository: https://github.com/ianramosc/metric.js
- Homepage: https://github.com/ianramosc/metric.js#readme
- Issues: https://github.com/ianramosc/metric.js/issues
- npm.io page: https://npm.io/package/metricjs

## Recent versions

- 1.0.1 (latest) — 2016-07-12
- 1.0.0 — 2016-06-08

## README

Metric.js
=====

Lightweight easy-to-use library for unit of measurement conversion.

<p align="center">
  <img alt="Metric.js" src="http://ianramosc.github.io/metric.js/images/logo.svg" width="300px" />
</p>

[![Build Status](https://travis-ci.org/IanRamosC/metric.js.svg?branch=master)](https://travis-ci.org/IanRamosC/metric.js)

### What is ~~love~~ Metric?

Metric.js is a lightweight library that provides an easy way to convert units of measurement.

### Installation

```sh
$ npm install --save metricjs
```

or

```html
<script src="./js/metric.min.js"></script>
```

### Usage

```js
// If you're using node
const metric = require("metricjs")

let birthday = new Date("1995-03-01T00:00:00Z").getTime()

let age = metric.milliseconds(Date.now() - birthday).toYears() // 21.38...
```
[You can find the full documentation here](https://ianramosc.github.io/metric.js)

### License

[MIT](https://github.com/ianramosc/metric.js/blob/master/LICENSE) © Ian Ramos

---
_Source: https://npm.io/package/metricjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
