{"id":19423366,"url":"https://github.com/jeffminsungkim/hologo","last_synced_at":"2026-05-16T03:37:34.587Z","repository":{"id":57264940,"uuid":"130191200","full_name":"jeffminsungkim/hologo","owner":"jeffminsungkim","description":"🗓 A lightweight library that is used to find out humanly readable time differences between now and past date","archived":false,"fork":false,"pushed_at":"2019-03-04T02:44:29.000Z","size":85,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T18:03:11.609Z","etag":null,"topics":["date-format","datetime","javascript","lightweight","small","timeago","tiny","typescript"],"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/jeffminsungkim.png","metadata":{"files":{"readme":"readme.md","changelog":null,"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":"2018-04-19T09:24:05.000Z","updated_at":"2021-11-17T13:39:14.000Z","dependencies_parsed_at":"2022-08-25T03:40:32.912Z","dependency_job_id":null,"html_url":"https://github.com/jeffminsungkim/hologo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffminsungkim%2Fhologo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffminsungkim%2Fhologo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffminsungkim%2Fhologo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffminsungkim%2Fhologo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeffminsungkim","download_url":"https://codeload.github.com/jeffminsungkim/hologo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240603235,"owners_count":19827663,"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":["date-format","datetime","javascript","lightweight","small","timeago","tiny","typescript"],"created_at":"2024-11-10T13:38:22.413Z","updated_at":"2026-05-16T03:37:29.553Z","avatar_url":"https://github.com/jeffminsungkim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg align=\"center\" src=\"https://github.com/jeffminsungkim/jeffminsungkim.github.io/blob/master/images/nm/hologo/logo_500x300.png\" title=\"hologo\" alt=\"logo\"/\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://travis-ci.org/jeffminsungkim/hologo\"\u003e\n  \u003cimg src=\"https://travis-ci.org/jeffminsungkim/hologo.svg?branch=master\" alt=\"Build Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://codeclimate.com/github/jeffminsungkim/hologo/maintainability\"\u003e\n  \u003cimg src=\"https://api.codeclimate.com/v1/badges/8844236c4180124c0a9c/maintainability\" alt=\"Code Climate\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/hologo\"\u003e\n  \u003cimg src=\"https://img.shields.io/node/v/hologo.svg?label=works%20on%20node\" alt=\"Node Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/facebook/jest\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/tested_with-jest-99424f.svg\" alt=\"Jest\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/prettier/prettier\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/code_style-prettier-ff69b4.svg\" alt=\"Prettier\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/hologo\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dt/hologo.svg\" alt=\"Downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/jeffminsungkim/hologo/blob/master/license\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/jeffminsungkim/hologo.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003e A lightweight (1 KB) library that is used to find out humanly readable time differences between now and past date\n\n## Install\n\n```\n$ npm install hologo\n```\n\n_As of [NPM 5.0.0], installed modules are added as a dependency by default, so the --save option is no longer used. The other save options still exist and are listed in the [documentation] for npm install._\n\n## When is it useful\n\nThe module will result in the same relative date outcome like StackOverflow sign-up date of users.\n\n![Example Image](https://github.com/jeffminsungkim/jeffminsungkim.github.io/blob/master/images/nm/hologo/stackoverflow-member.png)\n\n## Usage\n\n\u003e Example current date: April 18, 2018 12:00:00\n\n### JavaScript\n\n```js\nconst memberFor = require('hologo');\n\nmemberFor.hologo('2018/04/18 11:45:00');\n//=\u003e '15 minutes'\n\nmemberFor.hologo('2018/04/18 11:00:00');\n//=\u003e '1 hour'\n\nmemberFor.hologo('2018-04-18 10:00:00');\n//=\u003e '2 hours'\n\nmemberFor.hologo('2018/04/17');\n//=\u003e '1 day'\n\nmemberFor.hologo('1522800000000'); // 04/04/2018 12:00:00 AM\n//=\u003e '14 days'\n\nmemberFor.hologo('2017/05/18');\n//=\u003e '11 months'\n\nmemberFor.hologo('2017/04/18');\n//=\u003e '1 year'\n\nmemberFor.hologo('04-20-2022');\n//=\u003e '0 seconds'\n```\n\n### TypeScript\n\n```ts\nimport { hologo } from 'hologo';\n\nhologo('2017/03/18');\n//=\u003e '1 year, 1 month'\n\nhologo('2012-02-14');\n//=\u003e '6 years, 3 months'\n```\n\n## API\n\n### hologo(date, option)\n\n#### date\n\nType: `string`\n\nYou may pass it either any valid date string or timestamp in milliseconds.\n\n#### option\n\nType: `string`\u003cbr\u003e\nDefault: `Date.now()`\n\nIf set, it will compare to the first parameter. Otherwise, it will stick with the current date.\n\n## License\n\nMIT © [JeffMinsungKim](https://jeffminsungkim.com)\n\n[NPM 5.0.0]: https://blog.npmjs.org/post/161081169345/v500\n[documentation]: https://docs.npmjs.com/cli/install\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffminsungkim%2Fhologo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffminsungkim%2Fhologo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffminsungkim%2Fhologo/lists"}