# phuocng/1loc

What's your favorite JavaScript single LOC (line of code)?

Repository: https://github.com/phuocng/1loc
Canonical: https://ross.abutalabs.com/products/1loc
Homepage: https://phuoc.ng/collection/1-loc
Language: MDX
License: MIT
License Family: permissive
Topics: javascript, tips-and-tricks, js-tips, one-liner, javascript-utils, one-line-code, eleventy
Last push: 2024-06-23T13:56:10+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2348, "days_push": 801, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6727, forks 516 (observed 2026-08-28T04:09:48.108395+00:00)

## What it is
A curated collection of favorite JavaScript single-line-of-code (one-liner) snippets, published as a website built with Eleventy. Community contributions are welcomed via markdown files.

## Use cases
- find javascript one-liner snippets
- learn javascript tips and tricks
- browse short utility code examples
- contribute a favorite one line of code
- replace small utility functions with one-liners

## When to choose
- you want quick, idiomatic JavaScript one-liner solutions
- you are learning JavaScript tricks from curated examples
- you want a community-maintained snippet collection

## When to avoid
- you need production-ready, tested utility libraries
- you need TypeScript or non-JavaScript snippets
- you need comprehensive documentation rather than short snippets

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: developer-tools, documentation
- domain: developer-tools, tutorials, web-development, awesome-lists
- platform: -
- tags: javascript, one-liners, tips-and-tricks, eleventy, snippets, web-server, nodejs

## Member repositories
- phuocng/1loc (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:48.108395+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:42:53.649997+00:00, confidence not recorded.
  - readme: https://github.com/phuocng/1loc (fetched 2026-08-28T04:09:48.108395+00:00, sha 44504a11dea1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
