Socket
Book a DemoInstallSign in
Socket

mr.convert

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

mr.convert

> ⚡ Mr.convert is a simple convert package

2.0.1
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

⚡ Mr.convert

⚡ Mr.convert is a simple convert package

Installation :

  $ npm install mr.convert
  $ npm i mr.convert

Usage :

const convert = require("mr.convert");
const { convertCountriesCode } = require("mr.convert");
console.log(convertCountriesCode("MA")); //Output is : Morocco 
const convert = require("mr.convert");
const { convertTime } = require("mr.convert");
console.log(convertTime(1,{from : "h" , to : "m"})); //Output is : 60
const convert = require("mr.convert");
const { convertMoney } = require("mr.convert");
console.log(convertMoney(1,{from : "USD" , to : "AUD"})); //Output is : 1.34
const convert = require("mr.convert");
const { convertDistance } = require("mr.convert");
console.log(convertDistance(5,{from : "HM" , to : "KM"})); //Output is : 0.5
const convert = require("mr.convert");
const { convertDistance } = require("mr.convert");
console.log(convertDistance(5,{from : "HM" , to : "KM"})); //Output is : 0.5
const convert = require("mr.convert");
const { convertNumber } = require("mr.convert");
console.log(convertNumber(10000)); //Output is : 10k

ScreenShot :

convertCountriesCode convertTime convertMoney convertDistance convertNumber

Available Methods :

  • convert.convertCountriesCode("Code");
  • convert.convertTime("time" , "to");
  • convert.convertMoney(num,{from : "USD" , to : "AUD"});
  • convert.convertDistance(value , {from : "unit1" , to : "unit2"});
  • convert.convertNumber(number)

Exemple Methods :

  • convert.convertCountriesCode("MA");
  • convert.convertTime(1,{from : "h" , to:"m"});
  • convert.convertMoney(1,{from : "USD" , to : "AUD"});
  • convert.convertDistance(5 , {from : "HM" , to : "KM"});
  • convert.convertNumber(10000)

Convert Time Unit :

  • ms : milli-seconds
  • s : seconds
  • m : minutes
  • h : hours
  • d : days

News :

  • Added MAD in ConvertMoney Function

from : [ "EUR" , "USD" , "MAD" ]

Thx for +500 download <3

FAQs

Package last updated on 10 Jul 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.