0.8.0 • Published 10 years ago

five v0.8.0

Weekly downloads
9
License
MIT
Repository
github
Last release
10 years ago

five.js

A library to overcomplicate 5.

Build Status Code Climate

NPM

Usage

Require the module
var five = require('five');
In the browser
<script type="text/javascript" src="./five.js"></script>
Basic 5
five(); // 5
Addition
five() + five(); // 10
Multiplication
five() * five(); // 25
Division
five() / five(); // 1
Different sorts of 5
five.upHigh() // ⁵
five.downLow() // ₅
five.tooSlow() // 5, with a ~500 millisecond delay
five.roman() // V
five.morseCode() // di-di-di-di-dit
five.negative() // -5
five.loud() // FIVE
five.smooth() // S
5 goes multilingual
five.arabic() // خمسة
five.azerbaijani() // beş
five.basque() // bost
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.finnish() // viisi
five.french() // cinq
five.german() // fünf
five.hebrew() // חמש
five.hindi() // पांच
five.indonesian() // lima
five.irish() // cúig
five.italian() // cinque
five.japanese() // 五
five.kannada() // ಐದು
five.klingon() // vagh
five.korean() // 오
five.latin() // quinque
five.mongolian() // таван
five.persian() // پنج
five.piglatin() // ivefay
five.polish() // pięć
five.portuguese() // cinco
five.romanian() // cinci
five.russian() // пять
five.slovenian() // pet
five.spanish() // cinco
five.swedish() // fem
five.tamil() // ஐந்து
five.telugu() // ఐదు
five.thai() // ห้า
Different radices
five.binary(); // 101
five.octal(); // 5
five.hex(); // 5
Map and Reduce
five.map([1, 2, 3]); // [5, 5, 5]
five.reduce([1, 2, 3]); // 5
Novelty
five.fab(); // ['Juwan Howard','Ray Jackson','Jimmy King','Jalen Rose','Chris Webber']

Development

The code

All of the logic & heavy lifting is achieved in one self-contained file:

./five.js
Tests
npm test

License

MIT

0.8.0

10 years ago

0.7.0

10 years ago

0.6.0

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago