1.0.11 • Published 7 years ago

ch7al v1.0.11

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

ch7al

Build Status Dependency Status Coverage Status

ch7al is released under the MIT license

Description

Moroccan Local Currency Converter, convert Dirham to Centimes, Rials & vice versa.

Installation

$ npm i --save ch7al

Example

In Node.js:

const Ch7al = require('ch7al')

const dh = new Ch7al( 1, 'dh' )
const rial = new Ch7al( 1, 'rial' )
const centime = new Ch7al( 5, 'centime' )

console.log(`
  - 1 Dh = ${dh.to('rial')} rials = ${dh.to('centime')} centimes
  - 1 rials = ${rial.to('centime')} centimes = ${rial.to('dh')} Dh
  - 5 centimes = ${centime.to('rial')} rials = ${centime.to('dh')} Dh
`)

/*
- 1 Dh = 20 rials = 100 centimes
- 1 rials = 5 centimes = 0.05 Dh
- 5 centimes = 1 rials = 0.05 Dh
*/
1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago