{"id":13838842,"url":"https://github.com/jackdclark/five","last_synced_at":"2025-12-12T04:35:20.247Z","repository":{"id":18152179,"uuid":"21247519","full_name":"jackdclark/five","owner":"jackdclark","description":"Gives you five","archived":false,"fork":false,"pushed_at":"2022-12-16T02:34:59.000Z","size":271,"stargazers_count":1525,"open_issues_count":176,"forks_count":252,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-12-06T21:52:02.714Z","etag":null,"topics":["5","five"],"latest_commit_sha":null,"homepage":"https://five.js.org/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"opencv/opencv","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jackdclark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-26T16:36:28.000Z","updated_at":"2024-12-04T12:43:32.000Z","dependencies_parsed_at":"2022-08-26T15:01:16.739Z","dependency_job_id":null,"html_url":"https://github.com/jackdclark/five","commit_stats":null,"previous_names":["jackdcrawford/five"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackdclark%2Ffive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackdclark%2Ffive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackdclark%2Ffive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackdclark%2Ffive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackdclark","download_url":"https://codeload.github.com/jackdclark/five/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247359721,"owners_count":20926482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["5","five"],"created_at":"2024-08-04T16:00:35.196Z","updated_at":"2025-12-12T04:35:15.184Z","avatar_url":"https://github.com/jackdclark.png","language":"JavaScript","readme":"# five.js\n\nA library to overcomplicate `5`.\n\n[![Build Status](https://travis-ci.org/jackdcrawford/five.svg?branch=master)](https://travis-ci.org/jackdcrawford/five)\n[![Code Climate](https://codeclimate.com/github/jackdcrawford/five.png)](https://codeclimate.com/github/jackdcrawford/five)\n[![Test Coverage](https://codeclimate.com/github/jackdcrawford/five/coverage.png)](https://codeclimate.com/github/jackdcrawford/five)\n\n\u003cimg src=\"https://cldup.com/kwFz0lhg1u.png\" width=\"300\" alt=\"logo\" /\u003e\n\n### Usage\n##### Require the module\n```javascript\nvar five = require('five');\n```\n\n##### In the browser\n```html\n\u003cscript type=\"text/javascript\" src=\"./five.js\"\u003e\u003c/script\u003e\n```\n\n##### Basic 5\n```javascript\nfive(); // 5\n```\n\n## The Law of Fives\n```javascript\nfive.law(); // The Law of Fives states simply that: All things happen in fives, or are divisible by or are multiples of five, or are somehow directly or indirectly appropriate to 5. The Law of Fives is never wrong.\n```\n\n##### Addition\n```javascript\nfive() + five(); // 10\n```\n\n##### Multiplication\n```javascript\nfive() * five(); // 25\n```\n\n##### Division\n```javascript\nfive() / five(); // 1\n```\n##### Combinatorics\n```javascript\nfive.factorial(); // 120\n```\n\n##### Different sorts of 5\n```javascript\nfive.upHigh() // ⁵\nfive.downLow() // ₅\nfive.tooSlow() // 5, with a ~500 millisecond delay\nfive.roman() // V\nfive.morseCode() // .....\nfive.negative() // -5\nfive.loud() // FIVE\nfive.loud('piglatin') // IVEFAY\nfive.smooth() // S\nfive.bucks() // $5.00\n```\n\n##### Cryptography\n```javascript\nfive.mdFive() // 30056e1cab7a61d256fc8edd970d14f5\nfive.golden() // 1.618033988749895\n```\n\n##### 5 goes multilingual\n```javascript\nfive.arabic() // خمسة\nfive.azerbaijani() // beş\nfive.basque() // bost\nfive.belarusian() // пяць\nfive.bosnian() // pet\nfive.bulgarian() // пет\nfive.catalan() // cinc\nfive.chinese() // 五\nfive.chinese('pinyin') // wǔ\nfive.chinese('financial') // 伍\nfive.choctaw() // tahlapi\nfive.croatian() // pet\nfive.czech() // pět\nfive.dothraki() // mek\nfive.dovah() // hen\nfive.dutch() // vijf\nfive.elvish() // lempë\nfive.elvish('quenya') // lempë\nfive.elvish('sindarin') // leben\nfive.english() // five\nfive.esperanto() // kvin\nfive.estonian() // viis\nfive.finnish() // viisi\nfive.french() // cinq\nfive.german() // fünf\nfive.greek() // πέντε\nfive.hebrew() // חמש\nfive.hindi() // पांच\nfive.hungarian() // öt\nfive.icelandic() // fimm\nfive.indonesian() // lima\nfive.irish() // cúig\nfive.italian() // cinque\nfive.japanese() // 五\nfive.kannada() // ಐದು\nfive.klingon() // vagh\nfive.korean() // 오\nfive.latin() // quinque\nfive.latvian() // pieci\nfive.lithuanian() // penki\nfive.maltese() // ħamsa\nfive.mongolian() // таван\nfive.nepali() // पाँच\nfive.norwegian() // fem\nfive.persian() // پنج\nfive.piglatin() // ivefay\nfive.polish() // pięć\nfive.portuguese() // cinco\nfive.punjabi() // ਪੰਜ\nfive.romanian() // cinci\nfive.russian() // пять\nfive.serbian() // pet\nfive.sinhala() // පහ\nfive.slovakian() // päť\nfive.slovenian() // pet\nfive.spanish() // cinco\nfive.swedish() // fem\nfive.tamil() // ஐந்து\nfive.telugu() // ఐదు\nfive.thai() // ห้า\nfive.turkish() // beş\nfive.ukrainian() // п’ять\nfive.welsh() // pump\n```\n\n##### Different radices\n```javascript\nfive.binary(); // 101\nfive.octal(); // 5\nfive.hex(); // 5\nfive.base(4); // 11\nfive.base(3); // 12\n```\n\n##### Assertion\n```javascript\nfive.isFive(10); // false\n```\n\n##### Filter, Map and Reduce\n```javascript\nfive.filter([5, true, 5]); // [5, 5]\nfive.map([1, 2, 3]); // [5, 5, 5]\nfive.reduce([1, 2, 3]); // 5\n```\n\n##### Novelty\n```javascript\nfive.fab(); // ['Juwan Howard','Ray Jackson','Jimmy King','Jalen Rose','Chris Webber']\nfive.jackson(); // ['Jackie','Tito','Jermaine','Marlon','Michael']\nfive.furious(); // ['Tigress','Viper','Crane','Monkey','Mantis']\nfive.luniz(); // ‘I Got 5 on It’\nfive.r(); // '£5'\nfive.funk(); // '5 bad boys with the power to rock you'\nfive.high(); // 'o/'\nfive.members(); //['Sean Conlon', 'Ritchie Neville', 'Scott Robinson', 'Jason \\'J\\' Brown', 'Abz Love']\nfive.discography(); //['5ive', 'Invincible', 'Kingsize']\nfive.singles(); //['Slam Dunk (Da Funk)', 'When the Lights Go Out', 'Got the Feelin\\'', 'Everybody Get Up', 'It\\'s the Things You Do', 'Until the Time Is Through', 'If Ya Gettin\\' Down', 'Keep On Movin\\'', 'Don\\'t Wanna Let You Go', 'We Will Rock You', 'Let\\'s Dance', 'Closer to Me', 'Rock the Party', 'I Wish It Could Be Christmas Everyday']\nfive.famous(); // ['Julian', 'Dick', 'George', 'Anne', 'Timmy']\nfive.fiveFiveFive(); // 'Interstella 5555: The 5tory of the 5ecret 5tar 5ystem'\n```\n\n##### Rotation\n```javascript\nfive.rot(\"five.js\"); //\"knaj.ox\"\n```\n\n##### Asynchronous Usage\n```javascript\nfive.async(function(err, five) {\n\t// five === 5\n});\n```\n\n##### Unicode\n```javascript\nfive.oclock(); // '🕔'\n\nfive.oclockSomewhere(); // '🍺'\n\nfive.guys(); // '🍔'\n```\n\n##### Money\n```javascript\nfive.euro(); // '5€'\nfive.dollar(); // '$5'\n```\n\n\n### Development\n##### The code\nAll of the logic \u0026 heavy lifting is achieved in one self-contained file:\n```\n./five.js\n```\n\n##### Tests\n```\nnpm test\n```\n### License\nMIT\n","funding_links":[],"categories":["JavaScript","Libraries, Frameworks and SDKs"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackdclark%2Ffive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackdclark%2Ffive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackdclark%2Ffive/lists"}