Comparing version 0.0.1 to 0.1.0
15
index.js
@@ -1,3 +0,14 @@ | ||
module.exports = function() { | ||
return 5; | ||
var five = function() { return 5; }; | ||
module.exports = five; | ||
five.upHigh = function() { return '⁵'; }; | ||
five.downLow = function() { return '₅'; }; | ||
five.tooSlow = function() { | ||
var returnIn = new Date(new Date().valueOf() + 555); | ||
do {} while(new Date() < returnIn); | ||
return five(); | ||
}; |
{ | ||
"name": "five", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "Gives you five", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "node test && echo ✔" | ||
}, | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -31,2 +31,7 @@ # five.js | ||
##### Different sorts of 5 | ||
five.upHigh() // ⁵ | ||
five.downLow() // ₅ | ||
five.tooSlow() // 5, with a ~500 millisecond delay | ||
### Development | ||
@@ -40,9 +45,4 @@ ##### The code | ||
##### Tests | ||
The tests are written with `mocha` and can be run with | ||
``` | ||
mocha | ||
``` | ||
or | ||
``` | ||
npm test | ||
``` |
2122
21