A library to overcomplicate 5
.
var five = require('five');
<script type="text/javascript" src="./five.js"></script>
five(); // 5
five() + five(); // 10
five() * five(); // 25
five() / five(); // 1
five.upHigh() // ⁵
five.downLow() // ₅
five.tooSlow() // 5, with a ~500 millisecond delay
five.roman() // V
five.morseCode() // di-di-di-di-dah
five.negative() // -5
five.loud() // FIVE
five.loud('piglatin') // IVEFAY
five.smooth() // S
console.log(five.lcd()) /* -
|
-
|
- */
five.arabic() // خمسة
five.azerbaijani() // beş
five.basque() // bost
five.belarusian // пяць
five.bosnian() // pet
five.bulgarian() // пет
five.catalan() // cinc
five.chinese() // 五
five.choctaw() // tahlapi
five.croatian() // pet
five.czech() // pět
five.dovah() // hen
five.dutch() // vijf
five.elvish() // lempe
five.english() // Five
five.estonian() // viis
five.finnish() // viisi
five.french() // cinq
five.german() // fünf
five.greek() // πέντε
five.hebrew() // חמש
five.hindi() // पांच
five.hungarian() // öt
five.indonesian() // lima
five.irish() // cúig
five.italian() // cinque
five.japanese() // 五
five.kannada() // ಐದು
five.klingon() // vagh
five.korean() // 오
five.latin() // quinque
five.latvian() // pieci
five.lithuanian() // penki
five.mongolian() // таван
five.norwegian() // fem
five.persian() // پنج
five.piglatin() // ivefay
five.polish() // pięć
five.portuguese() // cinco
five.romanian() // cinci
five.russian() // пять
five.serbian() // pet
five.slovakian() // päť
five.slovenian() // pet
five.spanish() // cinco
five.swedish() // fem
five.tamil() // ஐந்து
five.telugu() // ఐదు
five.thai() // ห้า
five.turkish() // beş
five.ukrainian() // п’ять
five.welsh() // pump
five.binary(); // 101
five.octal(); // 5
five.hex(); // 5
five.map([1, 2, 3]); // [5, 5, 5]
five.reduce([1, 2, 3]); // 5
five.fab(); // ['Juwan Howard','Ray Jackson','Jimmy King','Jalen Rose','Chris Webber']
five.jackson(); // ['Jackie','Tito','Jermaine','Marlon','Michael']
five.rot("five.js"); //"knaj.ox"
five.async(function(err, five) {
// five === 5
});
All of the logic & heavy lifting is achieved in one self-contained file:
./five.js
npm test
MIT