Comparing version 0.6.0 to 0.7.0
52
five.js
@@ -9,19 +9,38 @@ (function () { | ||
five.arabic = function() { return 'خمسة' }; | ||
five.croatian = function() { return 'pet' }; | ||
five.czech = function() { return 'pět' }; | ||
five.english = function() { return 'Five' }; | ||
five.french = function() { return 'cinq' }; | ||
five.german = function() { return 'fünf' }; | ||
five.irish = function() { return 'cúig' }; | ||
five.mongolian = function() { return 'таван' }; | ||
five.polish = function() { return 'pięć' }; | ||
five.swedish = function() { return 'fem' }; | ||
five.thai = function() { return 'ห้า' }; | ||
five.arabic = function() { return 'خمسة'; }; | ||
five.basque = function() { return 'bost'; }; | ||
five.chinese = function() { return '五'; }; | ||
five.choctaw = function() { return 'tahlapi'; }; | ||
five.croatian = function() { return 'pet'; }; | ||
five.czech = function() { return 'pět'; }; | ||
five.dutch = function() { return 'vijf'; }; | ||
five.english = function() { return 'five'; }; | ||
five.finnish = function() { return 'viisi'; }; | ||
five.french = function() { return 'cinq'; }; | ||
five.german = function() { return 'fünf'; }; | ||
five.hindi = function() { return 'पांच'; }; | ||
five.irish = function() { return 'cúig'; }; | ||
five.italian = function() { return 'cinque'; }; | ||
five.japanese = function() { return '五'; }; | ||
five.kannada = function() { return 'ಐದು'; }; | ||
five.mongolian = function() { return 'таван'; }; | ||
five.piglatin = function() { return 'ivefay'; }; | ||
five.polish = function() { return 'pięć'; }; | ||
five.russian = function() { return 'пять'; }; | ||
five.slovenian = function() { return 'pet'; }; | ||
five.spanish = function() { return 'cinco'; }; | ||
five.swedish = function() { return 'fem'; }; | ||
five.tamil = function() { return 'ஐந்து'; }; | ||
five.telugu = function() { return 'ఐదు'; }; | ||
five.thai = function() { return 'ห้า'; }; | ||
five.morseCode = function() { return 'di-di-di-di-dit' }; | ||
five.morseCode = function() { return 'di-di-di-di-dit'; }; | ||
five.binary = function() { return '101'; }; | ||
five.octal = function() { return '5'; }; | ||
five.hex = function() { return '5'; }; | ||
five.negative = function() { return -5; } | ||
five.loud = function() { return "FIVE"; } | ||
five.smooth = function() { return "S"; } | ||
five.tooSlow = function() { | ||
@@ -35,2 +54,9 @@ var returnIn = new Date(new Date().valueOf() + 555); | ||
five.map = function(array) { return array.map(five); } | ||
five.reduce = function(array) { return array.reduce(five); } | ||
five.fab = function() { | ||
return ["Juwan Howard","Ray Jackson","Jimmy King","Jalen Rose","Chris Webber"]; | ||
}; | ||
if(typeof module !== 'undefined' && module.exports) { | ||
@@ -37,0 +63,0 @@ module.exports = five; |
{ | ||
"name": "five", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Gives you five", | ||
@@ -17,3 +17,3 @@ "main": "five.js", | ||
"author": "Jack Crawford <jackcrawford19@gmail.com>", | ||
"license": "BSD-2-Clause", | ||
"license": "MIT", | ||
"bugs": { | ||
@@ -20,0 +20,0 @@ "url": "https://github.com/jackdcrawford/five/issues" |
@@ -47,2 +47,5 @@ # five.js | ||
five.morseCode() // di-di-di-di-dit | ||
five.negative() // -5 | ||
five.loud() // FIVE | ||
five.smooth() // S | ||
``` | ||
@@ -53,11 +56,26 @@ | ||
five.arabic() // خمسة | ||
five.basque() // bost | ||
five.chinese() // 五 | ||
five.choctaw() // tahlapi | ||
five.croatian() // pet | ||
five.czech() // pět | ||
five.dutch() // vijf | ||
five.english() // Five | ||
five.finnish() // viisi | ||
five.french() // cinq | ||
five.german() // fünf | ||
five.hindi() // पांच | ||
five.irish() // cúig | ||
five.italian() // cinque | ||
five.japanese() // 五 | ||
five.kannada() // ಐದು | ||
five.mongolian() // таван | ||
five.piglatin() // ivefay | ||
five.polish() // pięć | ||
five.russian() // пять | ||
five.slovenian() // pet | ||
five.spanish() // cinco | ||
five.swedish() // fem | ||
five.tamil() // ஐந்து | ||
five.telugu() // ఐదు | ||
five.thai() // ห้า | ||
@@ -70,4 +88,16 @@ ``` | ||
five.octal(); // 5 | ||
five.hex(); // 5 | ||
``` | ||
##### Map and Reduce | ||
```javascript | ||
five.map([1, 2, 3]); // [5, 5, 5] | ||
five.reduce([1, 2, 3]); // 5 | ||
``` | ||
##### Novelty | ||
```javascript | ||
five.fab(); // ["Juwan Howard","Ray Jackson","Jimmy King","Jalen Rose","Chris Webber"] | ||
``` | ||
### Development | ||
@@ -84,1 +114,3 @@ ##### The code | ||
``` | ||
### License | ||
MIT |
27
test.js
@@ -12,11 +12,26 @@ var assert = require('assert'); | ||
assert.equal('خمسة', five.arabic(), 'A arabic five should be خمسة'); | ||
assert.equal('bost', five.basque(), 'A Basque five should be bost'); | ||
assert.equal('五', five.chinese(), 'A chinese five should be 五'); | ||
assert.equal('tahlapi', five.choctaw(), 'A choctaw five should be tahlapi'); | ||
assert.equal('pet', five.croatian(), 'A croatian five should be pet'); | ||
assert.equal('pět', five.czech(), 'A czech five should be pět'); | ||
assert.equal('Five', five.english(), 'A english five should be Five'); | ||
assert.equal('vijf', five.dutch(), 'A dutch five should be vijf'); | ||
assert.equal('five', five.english(), 'A english five should be Five'); | ||
assert.equal('viisi', five.finnish(), 'A finnish five should be viisi'); | ||
assert.equal('cinq', five.french(), 'A french five should be cinq'); | ||
assert.equal('fünf', five.german(), 'A german five should be fünf'); | ||
assert.equal('पांच', five.hindi(), 'A hindi five should be पांच'); | ||
assert.equal('cúig', five.irish(), 'A irish five should be cúig'); | ||
assert.equal('cinque', five.italian(), 'A italian five should be cinque'); | ||
assert.equal('五', five.japanese(), 'A japanese five should be 五'); | ||
assert.equal('ಐದು', five.kannada(), 'A kannada five should be ಐದು'); | ||
assert.equal('таван', five.mongolian(), 'A mongolian five should be таван'); | ||
assert.equal('ivefay', five.piglatin(), 'A piglatin five should be ivefay'); | ||
assert.equal('pięć', five.polish(), 'A polish five should be pięć'); | ||
assert.equal('пять', five.russian(), 'A russian five should be пять'); | ||
assert.equal('pet', five.slovenian(), 'A slovenian five should be pet'); | ||
assert.equal('cinco', five.spanish(), 'A spanish five should be cinco'); | ||
assert.equal('fem', five.swedish(), 'A swedish five should be fem'); | ||
assert.equal('ஐந்து', five.tamil(), 'A tamil five should be ஐந்து'); | ||
assert.equal('ఐదు', five.telugu(), 'A telugu five should be ఐదు'); | ||
assert.equal('ห้า', five.thai(), 'A thai five should be ห้า'); | ||
@@ -27,3 +42,8 @@ | ||
assert.equal('5', five.octal(), 'An octal five should be 5'); | ||
assert.equal('5', five.hex(), 'An hexadecimal five should be 5'); | ||
assert.equal('-5', five.negative(), 'A negative five should be -5'); | ||
assert.equal('FIVE', five.loud(), 'A loud five should be FIVE'); | ||
assert.equal('S', five.smooth(), 'A smooth five should be S'); | ||
var now = new Date().valueOf(); | ||
@@ -36,2 +56,7 @@ var slowFive = five.tooSlow(); | ||
assert.equal(JSON.stringify(["Juwan Howard","Ray Jackson","Jimmy King","Jalen Rose","Chris Webber"]), JSON.stringify(five.fab()), 'A fab five should be the 1991-1993 Michigan Mens Basketball Team'); | ||
assert.equal(JSON.stringify([5, 5, 5]), JSON.stringify(five.map([1, 2, 3]))); | ||
assert.equal(5, five.reduce([1, 2, 3])); | ||
process.exit(0); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9589
8
103
113