{"id":36772489,"url":"https://github.com/wassimbj/nta","last_synced_at":"2026-01-12T13:06:03.015Z","repository":{"id":36460450,"uuid":"223751123","full_name":"wassimbj/nta","owner":"wassimbj","description":"Simple, lightweight JS Time Ago module","archived":false,"fork":false,"pushed_at":"2023-01-06T03:34:43.000Z","size":90,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T04:59:43.444Z","etag":null,"topics":["date","javascript","multilingual","nta","timeago"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/wassimbj.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGE_LOG.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":"2019-11-24T13:46:34.000Z","updated_at":"2023-04-11T15:27:43.000Z","dependencies_parsed_at":"2023-01-17T01:40:20.744Z","dependency_job_id":null,"html_url":"https://github.com/wassimbj/nta","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wassimbj/nta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimbj%2Fnta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimbj%2Fnta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimbj%2Fnta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimbj%2Fnta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wassimbj","download_url":"https://codeload.github.com/wassimbj/nta/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimbj%2Fnta/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338992,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["date","javascript","multilingual","nta","timeago"],"created_at":"2026-01-12T13:06:02.938Z","updated_at":"2026-01-12T13:06:03.004Z","avatar_url":"https://github.com/wassimbj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is this ?\nThis is a simple lightweight **JS Time Ago module**,\nthat supports different languges and you can contribute to add yours.\n\n## works on the browser and server\nif you want to use it on the **browser**, you must include the `nta.min.js` file into you html file\n\u003cbr/\u003e\nelse if you are using **server side rendering or any js framework**, just npm install it and import it as you import any other package \n\n\n## Languages available for now are:\n`ar: arabic, en: english, de: german, vn: vietnamese`  \n\u003cbr /\u003e\n**please note that the default language is arabic, if you dont specifiy it in the second argument it will display in arabic language**\n\n## Display formats\n\n```javascript\n// ago format, this is the default format\ntimeAgo('2020-01-16 19:48:45', 'en'); // will return: 3mo ago\n\n// full format\ntimeAgo('2020-01-01 19:48:45', 'en', 'full'); // will return: 1 January\n\n```\n\n## Usage\nafter installing `nta`\n\n```javascript\nconst timeAgo = require('nta');\n\ntimeAgo(new Date, 'en', 'ago')\n```\n\n***params*** \u003cbr/\u003e\ntimeAgo function accepts 3 parameter wich are the `date, language, format`. \u003cbr/\u003e\n**the language is not required, arabic is set by default** \u003cbr/\u003e\n**the format is not required too, \"ago\" is set by default**\n\n\n## Accessible to your views ?\n\n```javascript\napp.locals.timeAgo = timeAgo\n```\nThats is it, nta is now accessible to all of your views you can use it as specified above.\n\n\n**Dont Forget to contribute by adding your language or any other feature you like**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwassimbj%2Fnta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwassimbj%2Fnta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwassimbj%2Fnta/lists"}