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

measures

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

measures - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

.eslintrc

10

package.json
{
"name": "measures",
"version": "0.1.0",
"version": "0.2.0",
"description": "Convert metric to imperial and vice versa",
"main": "dist/measures.umd.js",
"module": "dist/measures.es.js",
"main": "dist/measures.cjs.js",
"repository": "https://github.com/pillars/measures",

@@ -23,2 +22,6 @@ "author": "Karel Ledru-Mathe <karel@ledrumathe.com>",

},
"browserslist": {
"development": ["last 2 versions"],
"production": ["last 4 versions"]
},
"devDependencies": {

@@ -32,2 +35,3 @@ "babel-eslint": "6",

"eslint": "^3.19.0",
"eslint-plugin-compat": "^1.0.3",
"mocha": "^3.4.2",

@@ -34,0 +38,0 @@ "rollup": "^0.41.6",

# Measures [![Build Status](https://travis-ci.org/pillars/measures.svg?branch=master)](https://travis-ci.org/pillars/measures)
I was born in France but live in Montreal. Construction in America relies a lot on the imperial mesuring system ([which makes me extremely sad](http://www.funnyjunk.com/Baby+steps+america/funny-pictures/5224677#744572_5224233)). I wanted a way to easily convert units on my website for readers that are only comfortable with one format. You can see the package at work at [karelledru.com](https://karelledru.com).
Construction in America relies a lot on the imperial mesuring system ([which makes me extremely sad](http://www.funnyjunk.com/Baby+steps+america/funny-pictures/5224677#744572_5224233)). I wanted a way to easily convert units on my website for readers that are only comfortable with one format. You can see the package at work at [karelledru.com](https://karelledru.com).
DISCLAMER: This package is not really production ready. There is still quite some work needed. Use at your own risk but feel free to open tickets or PRs if you want to use/contribute.
## Features

@@ -23,15 +25,10 @@

```
yarn add measures
yarn global add measures
```
Or as a script tag:
```html
<script src="measures.min.js"></script>
```
And start using:
```js
Measures.from('6ft 4in 1/2').to('m')
Measures = require('measures')
new Measures().from('6ft 4in 1/2').to('m')
```

@@ -46,5 +43,4 @@

- `10cm`
- `10 cm`
- `28 m`
- `6' 4"`
- `6 inches`

@@ -77,3 +73,3 @@ As well as combined units and fractions:

For inches, you might want to format it as fractions. You can do that with the precision:
For inches, you might want to format it as a fraction. You can do that with the precision:

@@ -95,2 +91,2 @@ - `*-/n` where `n` is an integer in [2, 4, 8, 16, 32, 64]. So `*-/8` will return fraction where the denominator is 8 or less.

**IMPORTANT**: I will not merge a PR without proper testing or documentation.
**IMPORTANT**: I will not merge a PR without proper testing and documentation.

Sorry, the diff of this file is not supported yet

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