// // @description : // @author : Adarsh Pastakia // @copyright : 2016 // @license : MIT import * as kramed from "kramed"; import * as moment from "moment"; import * as numeral from "numeral"; export module UIFormat { export function toHTML(md) { return kramed(md).replace(/(\ 1 ? nm / 100 : nm) .format('0.00 %'); } export function exRate(nm: any): string { return nm === null || isNaN(nm) ? '' : numeral(nm > 0 ? 1 / nm : nm) .format('0.0000[a]'); } }