Skip to content

nkhil/cnv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 cnv

To install it locally, use npm i cnv instead.

Usage

cnv 50km m

Some more examples:

cnv 1m cm
cnv 1lb kg
cnv 100oz ml

Prebuild

Please run the prebuild command (npm run prebuild) before publishing this package.

Test

cnv is tested using ava.

To run tests:

  1. Setup the repository locally using:
git clone git@github.com:nkhil/cnv.git
cd cnv
npm install
  1. Run tests:
npm t

About

Command line helper to convert units (eg: lb to lg, km to miles etc)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published