Skip to content
This repository has been archived by the owner on Jul 12, 2018. It is now read-only.

howsecureismypassword/modules-named-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How Secure Is My Password

Named Numbers

var namedNumber = require("named-number");
var number = namedNumber(20000000);

console.log(number.getName()); // "20 million"
console.log(number.getFormatted()); // "20,000,000"
console.log(number.getSignificand()); // 2
console.log(number.getExponent()); // 7
console.log(number + 1); // 20000001
console.log("Result: " + number); // "Result: 20,000,000"

About

The named number module

Resources

Stars

Watchers

Forks

Packages

No packages published