Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rasbeetech/metric-imperial-converter
API service to convert metric/imperial measurements
https://github.com/rasbeetech/metric-imperial-converter
api api-rest automated-testing chai chai-http css express html javascript mocha mocha-chai mocha-tests mochajs nodejs testing
Last synced: 7 days ago
JSON representation
API service to convert metric/imperial measurements
- Host: GitHub
- URL: https://github.com/rasbeetech/metric-imperial-converter
- Owner: RasbeeTech
- Created: 2021-06-16T00:34:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-16T23:05:38.000Z (over 3 years ago)
- Last Synced: 2024-10-11T22:43:01.378Z (about 1 month ago)
- Topics: api, api-rest, automated-testing, chai, chai-http, css, express, html, javascript, mocha, mocha-chai, mocha-tests, mochajs, nodejs, testing
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Metric-Imperial-Converter
API service to convert metric/imperial measurements### Purpose:
Practice implementing unit and integrated Mocha Chai-HTTP testing.### Usage:
```
/api/convert?input=4gal
```
```
/api/convert?input=1/2km
```
```
/api/convert?input=5.4/3lbs
```
```
/api/convert?input=kg
```### Example return:
```
{ initNum: 3.1, initUnit: 'mi', returnNum: 4.98895, returnUnit: 'km', string: '3.1 miles converts to 4.98895 kilometers' }
```