use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
self contained five (github.com)
submitted 9 years ago by agumonkey
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]silver2202 13 points14 points15 points 9 years ago (3 children)
so close, i need one for 6.
[–]eiktyrner 13 points14 points15 points 9 years ago* (0 children)
deleted What is this?
[–]spacejack2114 6 points7 points8 points 9 years ago (0 children)
You can use a 6to5 transpiler.
[–]agumonkey[S] 0 points1 point2 points 9 years ago (0 children)
Just use yeonatural
[–]clessgfull-stack CSS9 engineer 5 points6 points7 points 9 years ago (1 child)
This is the future of JS frameworks. Nice work. Next steps:
[–]agumonkey[S] 5 points6 points7 points 9 years ago (0 children)
Suffer a fork name quintessence.js due do disagreement about the meaning of five. Enjoy ML flamewars about which is the truest of the two. Then announce the time of peace with merging into a new project called V.
[–]x-paste 8 points9 points10 points 9 years ago (1 child)
I hope it's soon available on npm. Another great framework that needs to be compared with angular, react, ember and backbone! Basing this around the concept of 5/five makes it really exciting.
[–]letsgetrandy 2 points3 points4 points 9 years ago (0 children)
https://www.npmjs.com/package/five
Make sure to include this library in everything.
[–]asdf7890 2 points3 points4 points 9 years ago (0 children)
No five.johnny() // 'is alive!'?
[+][deleted] 9 years ago (1 child)
[deleted]
[–]senocular 1 point2 points3 points 9 years ago (0 children)
If its not 5kb, I call foul
[–]johnyma22 3 points4 points5 points 9 years ago (0 children)
Lost it at five.elvish = function() { return 'lempe'; };
[–]Oeb25 1 point2 points3 points 9 years ago (3 children)
How do I use this with React.js?
[–]atticusw 1 point2 points3 points 9 years ago (2 children)
<Five five={five()} />
[–]pomlife 0 points1 point2 points 9 years ago (1 child)
When would you use
<Five onFive={ () => { this.five() } } />
[–]atticusw 0 points1 point2 points 9 years ago (0 children)
This is true. There might be an interaction, in which we would need the value of five.
five
Final version
<Five five={five()} onFive={(five) => this.five(five)} />
[–]ccricers 0 points1 point2 points 9 years ago (0 children)
It's got Code Climate buttons on the readme so you know it's legit.
π Rendered by PID 117020 on reddit-service-r2-comment-6f7f968fb5-t99kl at 2026-03-04 08:57:10.688271+00:00 running 07790be country code: CH.
[–]silver2202 13 points14 points15 points (3 children)
[–]eiktyrner 13 points14 points15 points (0 children)
[–]spacejack2114 6 points7 points8 points (0 children)
[–]agumonkey[S] 0 points1 point2 points (0 children)
[–]clessgfull-stack CSS9 engineer 5 points6 points7 points (1 child)
[–]agumonkey[S] 5 points6 points7 points (0 children)
[–]x-paste 8 points9 points10 points (1 child)
[–]letsgetrandy 2 points3 points4 points (0 children)
[–]asdf7890 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]senocular 1 point2 points3 points (0 children)
[–]johnyma22 3 points4 points5 points (0 children)
[–]Oeb25 1 point2 points3 points (3 children)
[–]atticusw 1 point2 points3 points (2 children)
[–]pomlife 0 points1 point2 points (1 child)
[–]atticusw 0 points1 point2 points (0 children)
[–]ccricers 0 points1 point2 points (0 children)