vague-date
Version:
A tiny JavaScript library that formats precise time differences as a vague/fuzzy date, e.g. 'yesterday', 'today' or 'next week'.
24 lines (22 loc) • 580 B
HTML
<html>
<head>
<meta charset="utf-8" />
<title>vagueDate.js unit tests</title>
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<script src="../node_modules/chai/chai.js"></script>
<script src="../node_modules/mocha/mocha.js"></script>
<script>
mocha.setup('tdd');
</script>
<script src="../src/vagueDate.min.js"></script>
<script src="vagueDate_browser.js"></script>
<script>
mocha.checkLeaks();
mocha.run();
</script>
</body>
</html>