Skip to content

jordic/five

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

five.js

A library to overcomplicate 5.

travis 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
5 goes multilingual
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() // ห้า
Different radices
five.binary(); // 101
five.octal(); // 5

Development

The code

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

./five.js
Tests
npm test

About

Gives you five

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%