# angular-moment

moment.js pipes for Angular

Repository: https://github.com/urish/ngx-moment
Canonical: https://ross.abutalabs.com/products/angular-moment
Language: TypeScript
License: MIT
License Family: permissive
Topics: angular, angular-pipes, moment, moment-pipes, time-ago
Last push: 2023-08-25T10:25:44+00:00

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

## Adoption (not part of the score)
Stars 1157, forks 150 (observed 2026-08-28T04:03:48.310271+00:00)

## What it is
A set of AngularJS directives and filters (and Angular pipes via ngx-moment) wrapping Moment.js for formatting dates and relative timestamps like 'time ago'. It provides the am-time-ago directive that dynamically updates displayed elapsed time.

## Use cases
- show relative timestamps like '5 minutes ago' in an Angular app
- format dates with Moment.js inside AngularJS templates
- auto-updating timeago display for chat message timestamps
- add locale/internationalization support for date formatting in Angular
- use moment-timezone with Angular dependency injection

## When to choose
- you maintain a legacy AngularJS (1.x) app needing date formatting directives
- you want drop-in timeago rendering with automatic updates
- you need Moment.js integration with Angular's dependency injection

## When to avoid
- you are starting a new modern Angular project (prefer date-fns, Day.js, or Angular's built-in date pipes)
- you want an actively developed library (last release 2020, AngularJS itself is end-of-life)
- you avoid Moment.js due to its deprecated status and bundle size

## Facets
- artifact type: library
- maturity: maintenance
- function: date-time, templating, internationalization
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: angularjs, angular, momentjs, timeago, directives, pipes, nodejs, web-server

## Member repositories
- urish/ngx-moment (main) score 23
- urish/angular-moment (mirror) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:48.310271+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-30T02:22:28.463944+00:00, confidence not recorded.
  - readme: https://github.com/urish/ngx-moment (fetched 2026-08-28T04:03:48.310271+00:00, sha 710cf1f8acbe)
  - registry_npm: https://registry.npmjs.org/angular-moment (fetched 2026-08-29T10:05:32.390310+00:00, sha cad5bd1068ec)
  - registry_npm: https://registry.npmjs.org/ngx-moment (fetched 2026-08-29T10:05:32.399968+00:00, sha c45a159474ce)
- Data as of 2026-08-30T08:39:29.467469+00:00.
