{"id":23173359,"url":"https://github.com/peralva/custom-date","last_synced_at":"2026-02-12T05:09:05.035Z","repository":{"id":268154123,"uuid":"903015367","full_name":"peralva/custom-date","owner":"peralva","description":"Custom Date","archived":false,"fork":false,"pushed_at":"2024-12-14T19:12:28.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-08T20:55:52.614Z","etag":null,"topics":["date","mask","string"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@peralva/custom-date","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/peralva.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-13T18:41:07.000Z","updated_at":"2024-12-14T19:31:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"14e3717e-e28f-498b-a6c2-776d44ebbe4e","html_url":"https://github.com/peralva/custom-date","commit_stats":null,"previous_names":["peralva/custom-date"],"tags_count":2,"template":false,"template_full_name":"peralva/npm-template","purl":"pkg:github/peralva/custom-date","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peralva%2Fcustom-date","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peralva%2Fcustom-date/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peralva%2Fcustom-date/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peralva%2Fcustom-date/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peralva","download_url":"https://codeload.github.com/peralva/custom-date/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peralva%2Fcustom-date/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272929992,"owners_count":25017057,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","mask","string"],"created_at":"2024-12-18T05:13:32.388Z","updated_at":"2026-02-12T05:08:59.996Z","avatar_url":"https://github.com/peralva.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @peralva/custom-date\n\nCustom Date\n\n[![NPM Version](https://img.shields.io/npm/v/%40peralva%2Fcustom-date)](https://www.npmjs.com/package/@peralva/custom-date?activeTab=versions)\n[![GitHub Release Date](https://img.shields.io/github/release-date/peralva/custom-date)](https://github.com/peralva/custom-date/releases)\n[![GitHub License](https://img.shields.io/github/license/peralva/custom-date)](https://github.com/peralva/custom-date?tab=MIT-1-ov-file#readme)\n[![NPM Downloads](https://img.shields.io/npm/dm/%40peralva%2Fcustom-date)](https://www.npmjs.com/package/@peralva/custom-date)\n[![NPM Publish](https://github.com/peralva/custom-date/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/peralva/custom-date/actions/workflows/npm-publish.yml)\n\n## Installation\n\n```bash\nnpm install --save @peralva/custom-date\n```\n\n## Usage\n\n### Get date string from a mask\n\n```ts\nimport { CustomDate } from '@peralva/custom-date';\n\nconst date = new CustomDate();\n\nconst stringDate = date.toCustomString('yyyy-MM-dd HH:mm:ss.SSS', {\n\ttimezone: -180,\n});\n\nconsole.log(stringDate);\n```\n\n### Change date instance from a mask\n\n```ts\nimport { CustomDate } from '@peralva/custom-date';\n\nconst date = new CustomDate();\n\ndate.fromString('20241214 12:34:56.789', 'yyyyMMdd HH:mm:ss.SSS', {\n\ttimezone: -180,\n});\n\nconsole.log(date);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperalva%2Fcustom-date","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperalva%2Fcustom-date","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperalva%2Fcustom-date/lists"}