Browse the collection to find a single line of JavaScript that solves a common task like checking if a value is an array or generating a random color.
Contribute your own useful JavaScript one-liner to the community by submitting a markdown file to the contents folder.
| phuocng/1loc | getbem/getbem.github.io | cloudflare/cloudflare-docs | |
|---|---|---|---|
| Stars | 6,744 | 5,747 | 4,715 |
| Language | MDX | MDX | MDX |
| Setup difficulty | easy | easy | easy |
| Complexity | 1/5 | 1/5 | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
This is a community collection of JavaScript one-liners: short snippets of code that accomplish something useful in a single line. The project is built around a website where visitors can browse and discover tips, and anyone can contribute by submitting a markdown file with their favorite single-line snippet. The README is sparse and does not describe the contents of the collection in detail. The repository stores each snippet as a markdown file in a contents folder, and the site appears to be built with Eleventy, a tool for generating static websites from those files. To see the actual snippets, browsing the repository's contents folder or visiting the associated website would give a better picture than the README alone.
A community-sourced collection of JavaScript one-liners, tiny single-line code snippets that each do something useful, browsable on an associated website built with Eleventy.
Mainly MDX. The stack also includes JavaScript, MDX, Eleventy.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.