New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cnv

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cnv

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
1
Created
Source

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

Test

cnv is tested using ava.

To run tests:

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

Keywords

convert units

FAQs

Package last updated on 11 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts