Module

x/humanity/mod.ts>createHumanity

Humanizer for Deno & NodeJS
Latest
function createHumanity
import { createHumanity } from "https://dotland.deno.dev/x/humanity@1.5.0/mod.ts";

create Humanity instance with default locale

const Humanity = createHumanity('en_US');
console.log(Humanity.number(500000)); // 500 000
// Output: 500 thousand

Parameters

optional
locale: LocaleHumanity = [UNSUPPORTED]

Locale to be used

Returns

Humanity instance