five.js
A library to overcomplicate 5
.
Usage
Require the module
var five = require('five');
In the browser
<script type="text/javascript" src="./five.js"></script>
Basic 5
five();
Addition
five() + five();
Multiplication
five() * five();
Division
five() / five();
Different sorts of 5
five.upHigh()
five.downLow()
five.tooSlow()
five.roman()
five.morseCode()
five.negative()
five.loud()
five.smooth()
5 goes multilingual
five.arabic()
five.azerbaijani()
five.basque()
five.bosnian()
five.bulgarian()
five.catalan()
five.chinese()
five.choctaw()
five.croatian()
five.czech()
five.dovah()
five.dutch()
five.elvish()
five.english()
five.finnish()
five.french()
five.german()
five.hebrew()
five.hindi()
five.indonesian()
five.irish()
five.italian()
five.japanese()
five.kannada()
five.klingon()
five.korean()
five.latin()
five.mongolian()
five.persian()
five.piglatin()
five.polish()
five.portuguese()
five.romanian()
five.russian()
five.slovenian()
five.spanish()
five.swedish()
five.tamil()
five.telugu()
five.thai()
Different radices
five.binary();
five.octal();
five.hex();
Map and Reduce
five.map([1, 2, 3]);
five.reduce([1, 2, 3]);
Novelty
five.fab();
Development
The code
All of the logic & heavy lifting is achieved in one self-contained file:
./five.js
Tests
npm test
License
MIT