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.arabic() // خمسة
five.croatian() // pet
five.czech() // pět
five.english() // Five
five.french() // cinq
five.german() // fünf
five.irish() // cúig
five.mongolian() // таван
five.polish() // pięć
five.swedish() // fem
five.thai() // ห้า
five.binary(); // 101
All of the logic & heavy lifting is achieved in one self-contained file:
./five.js
npm test