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

howsecureismypassword/modules-period

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How Secure Is My Password

Periods

var period = require("period");

console.log(period(3600).getLength()); // 1
console.log(period(3600).getSingular()); // "hour"
console.log(period(3600).getPlural()); // "hours"

console.log(period(24, "hour").getLength()); // 1
console.log(period(24, "hour").getSingular()); // "day"

console.log(period(7, "day").getLength()); // 1
console.log(period(7, "day").getPlural()); // "weeks"

About

The periods module

Resources

Stars

Watchers

Forks

Packages

No packages published