andrewplummer/Sugar
A Javascript library for working with native objects. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5531
- days_rel: n/a
- days_push: 811
- n_releases_24m: 0
Adoption not part of the score
4504 stars · 306 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Sugar is a JavaScript utility library for working with native objects like Array, Date, Number, and String, offering expressive methods for dates, arrays, strings, and numbers. It supports modular npm packages, custom builds, chainables, opt-in native extension, and polyfills for missing browser features.
Use cases
- parse natural language dates like 'last week Friday' in JavaScript
- format and manipulate dates with locale support
- compute sum, average, and max over arrays of objects
- truncate long text strings
- polyfill missing ES5 features in older browsers
- chain array operations like concat and unique
When to choose
- you need expressive date parsing and formatting with many locales
- you want a modular utility library with custom builds
- you need polyfills for older browser environments
When to avoid
- you prefer modern ES2020+ built-in methods and libraries like date-fns or lodash
- you are wary of libraries that extend native object prototypes
- you need a library with frequent updates and active community
Facets
library · maturity maintenance
date-time internationalization developer-tools developer-tools web-development frontend browser cross-platform utility-library native-objects polyfill date-parsing chainables javascript nodejs
7 sources
- readme: https://github.com/andrewplummer/Sugar · fetched 2026-08-28 · 6846620bb21b
- homepage: https://sugarjs.com/ · fetched 2026-08-29 · 2ef683939dfd
- site_page: https://sugarjs.com/quickstart · fetched 2026-08-29 · 1470d165c9d3
- site_page: https://sugarjs.com/docs · fetched 2026-08-29 · aac0d9a9fcea
- registry_npm: https://registry.npmjs.org/sugar · fetched 2026-08-29 · 35ec8bba2b11
- site_page: https://sugarjs.com/releases · fetched 2026-08-29 · 6d37b6072e0a
- site_page: https://sugarjs.com/releases/2.0.4 · fetched 2026-08-29 · 87161bd2f2d1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| andrewplummer/Sugar | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="andrewplummer/Sugar")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem