cnv
v2.0.1
Published
<img src="./img/logo.png" width="150px">
Readme
cnv
CLI tool to convert units in the command line. This module uses the convert-units module under the hood.
Motivation
I built this for myself, because I usually google to convert units. This allows me to do any conversions quickly (and offline) right in my terminal.
I also wanted to build something using Typescript and test it using ava.
Installation
Install cnv globally
npm i -g cnvTo install it locally, use npm i cnv instead.
Usage
cnv 50km mSome more examples:
cnv 1m cm
cnv 1lb kg
cnv 100oz mlTest
cnv is tested using ava.
To run tests:
- Setup the repository locally using:
git clone [email protected]:nkhil/cnv.git
cd cnv
npm install - Run tests:
npm t