{"id":15295251,"url":"https://github.com/thisissoon/angular-timesince","last_synced_at":"2025-07-26T17:31:58.257Z","repository":{"id":34433456,"uuid":"38366764","full_name":"thisissoon/angular-timesince","owner":"thisissoon","description":"A simple lightweight library for Angular which returns the number of seconds, minutes, days, months or years since any Date object based on the current system time","archived":false,"fork":false,"pushed_at":"2019-02-06T16:06:38.000Z","size":494,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-29T01:38:35.644Z","etag":null,"topics":["ago","angular","ngx","ngx-library","ngx-time-ago","ngx-time-since","ngx-timesince","pipe","since","time","time-ago","time-since"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thisissoon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-01T11:10:24.000Z","updated_at":"2019-02-07T10:39:54.000Z","dependencies_parsed_at":"2022-08-24T12:51:08.298Z","dependency_job_id":null,"html_url":"https://github.com/thisissoon/angular-timesince","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisissoon%2Fangular-timesince","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisissoon%2Fangular-timesince/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisissoon%2Fangular-timesince/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisissoon%2Fangular-timesince/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisissoon","download_url":"https://codeload.github.com/thisissoon/angular-timesince/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227700442,"owners_count":17806365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ago","angular","ngx","ngx-library","ngx-time-ago","ngx-time-since","ngx-timesince","pipe","since","time","time-ago","time-since"],"created_at":"2024-09-30T17:09:14.511Z","updated_at":"2024-12-02T09:15:40.023Z","avatar_url":"https://github.com/thisissoon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular TimeSince\n\n[![Build Status][circle-badge]][circle-badge-url]\n[![Coverage Status][coveralls-badge]][coveralls-badge-url]\n[![Commitizen friendly][commitizen-badge]][commitizen]\n[![code style: prettier][prettier-badge]][prettier-badge-url]\n\nA simple lightweight library for [Angular][angular] which removes excess text and add timesince symbol to end of text before text overflows container.\n\nThis is a simple library for [Angular][angular], implemented in the [Angular Package Format v5.0](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/edit#heading=h.k0mh3o8u5hx).\n\n## Install\n\n`npm i @thisissoon/angular-timesince --save`\n\n`app.module.ts`\n\n```ts\nimport { TimeSinceModule } from '@thisissoon/angular-timesince';\n\n@NgModule({\n  imports: [TimeSinceModule]\n})\nexport class AppModule {}\n```\n\n## Example\n\n`app.component.html`\n\n```html\n\u003cp\u003e{{ date | timeSince }} ago\u003c/p\u003e\n```\n\nResult:\n\n```html\n\u003cp\u003e7 years ago\u003c/p\u003e\n```\n\n`app.component.ts`\n\nUse any `Date` object or `Date` parsable value\n\n```ts\nexport class AppComponent {\n  date = new Date('2010-08-24T16:16:09.540Z');\n  // or\n  // date = \"2010-08-24T16:16:09.540Z\"\n}\n```\n\n## Development server\n\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\n\n## Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).\n\n## Making Commits\n\nThis repo uses [Commitizen CLI](http://commitizen.github.io/cz-cli/) and [Conventional Changelog](https://github.com/conventional-changelog/conventional-changelog) to create commits and generate changelogs. Instead of running `git commit` run `git cz` and follow the prompts. Changelogs will then be generated when creating new releases by running `npm run release`.\n\n## Making Releases\n\nRun `npm run release` to create a new release. This will use [Standard Version](https://github.com/conventional-changelog/standard-version) to create a new release. [Standard Version](https://github.com/conventional-changelog/standard-version) will generate / update the changelog based on commits generated using [Commitizen CLI](http://commitizen.github.io/cz-cli/), update the version number following semantic versioning rules and then commit and tag the commit for the release. Simply run `git push --follow-tags origin master`.\n\n[circle-badge]: https://circleci.com/gh/thisissoon/angular-timesince.svg?style=shield\n[circle-badge-url]: https://circleci.com/gh/thisissoon/angular-timesince\n[coveralls-badge]: https://coveralls.io/repos/github/thisissoon/angular-timesince/badge.svg?branch=master\n[coveralls-badge-url]: https://coveralls.io/github/thisissoon/angular-timesince?branch=master\n[angular]: https://angular.io/\n[commitizen]: http://commitizen.github.io/cz-cli/\n[commitizen-badge]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\n[prettier-badge]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=shield\n[prettier-badge-url]: https://github.com/prettier/prettier\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisissoon%2Fangular-timesince","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisissoon%2Fangular-timesince","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisissoon%2Fangular-timesince/lists"}