sisusa.information
v2.0.0
Published
Small library for utility classes like Money, PhoneNumber
Readme
Sisusa.Information
A small utility library to make working with phone numbers and money (currently) simpler. Wraps the most common properties and operations on these types.
Example
import {EswatiniPhoneNumber, Money} from 'sisusa.information';
const myNumber = new EswatiniPhoneNumber(22010101);
console.log(myNumber.toLinkString()); //outputs tel:+26822010101
//
let shoePrice:Money = Money.zar(799.95); //R799.95
const salePrice = shoePrice.reduceByPercent(20);
let quantityBought:number = 6;
const totalPrice:Money = salePrice.multiplyBy(quantityBought);
console.log(totalPrice.toShortString()); //R3839.76Simply install the library and start using.
