{"id":50841046,"url":"https://github.com/tetherto/pear-apps-utils-date","last_synced_at":"2026-06-14T06:35:22.399Z","repository":{"id":345544569,"uuid":"1113287926","full_name":"tetherto/pear-apps-utils-date","owner":"tetherto","description":"PearPass is an open-source, privacy-first password manager with peer-to-peer syncing and end-to-end encryption. This repository contains shared core components used across the PearPass apps.","archived":false,"fork":false,"pushed_at":"2026-05-28T07:53:45.000Z","size":154,"stargazers_count":0,"open_issues_count":0,"forks_count":7,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-28T09:23:57.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pass.pears.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tetherto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE.md","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-09T19:14:12.000Z","updated_at":"2026-05-28T07:53:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tetherto/pear-apps-utils-date","commit_stats":null,"previous_names":["tetherto/pear-apps-utils-date"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tetherto/pear-apps-utils-date","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetherto%2Fpear-apps-utils-date","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetherto%2Fpear-apps-utils-date/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetherto%2Fpear-apps-utils-date/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetherto%2Fpear-apps-utils-date/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tetherto","download_url":"https://codeload.github.com/tetherto/pear-apps-utils-date/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetherto%2Fpear-apps-utils-date/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34312072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"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":[],"created_at":"2026-06-14T06:35:21.684Z","updated_at":"2026-06-14T06:35:22.394Z","avatar_url":"https://github.com/tetherto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pear-apps-utils-date\n\nA collection of date utility functions for formatting and comparing dates.\n\n## Table of Contents\n- [Features](#features)\n- [Security Notice](#security-notice)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Examples](#examples)\n  - [Format Dates](#format-dates)\n  - [Compare Dates](#compare-dates)\n- [Dependencies](#dependencies)\n- [Related Projects](#related-projects)\n\n## Features\n\n- Format dates with customizable patterns using `formatDate`\n- Compare dates with `isAfter` to check if one date is later than another\n- Compare dates with `isBefore` to check if one date is earlier than another\n- Support for both Date objects and string date inputs\n- Customizable date separators\n- Month and weekday abbreviations\n\n## Security Notice\n\n1. To ensure the security and integrity of your projects, please note that official PearPass packages are distributed exclusively through our GitHub organization.\n2. Any packages with similar names found on the npm registry or other third-party package managers are not affiliated with PearPass and should be strictly avoided. We recommend installing directly from this repository to ensure you are using the verified, open-source version.\n\n## Installation\n\n```bash\nnpm install git+https://github.com/tetherto/pear-apps-utils-date.git\n```\n\n## Usage\n\nImport the functions you need:\n\n```javascript\nimport { formatDate, isAfter, isBefore } from '@tetherto/pear-apps-utils-date';\n```\n\n## Examples\n\n### Format Dates\n\n```javascript\n// Basic formatting (default: yyyy-mm-dd)\nformatDate(new Date('2023-05-15'));\n// Output: '2023-05-15'\n\n// Custom format\nformatDate(new Date('2023-05-15'), 'dd-mm-yyyy');\n// Output: '15-05-2023'\n\n// Custom separator\nformatDate(new Date('2023-05-15'), 'yyyy-mm-dd', '/');\n// Output: '2023/05/15'\n\n// With month abbreviation\nformatDate(new Date('2023-05-15'), 'dd-mmm-yyyy');\n// Output: '15-May-2023'\n\n// With weekday abbreviation\nformatDate(new Date('2023-05-15'), 'ddd-mm-dd');\n// Output: 'Mon-05-15'\n```\n\n### Compare Dates\n\n```javascript\n// Check if a date is after another\nisAfter('2023-01-02', '2023-01-01');\n// Output: true\n\n// Check if a date is before another\nisBefore('2023-01-01', '2023-01-02');\n// Output: true\n```\n\n## Dependencies\n\nThis package has no runtime dependencies.\n\n## Related Projects\n\n- [@tetherto/pearpass-app-mobile](https://github.com/tetherto/pearpass-app-mobile) - A mobile app for PearPass, a password manager\n- [@tetherto/pearpass-app-desktop](https://github.com/tetherto/pearpass-app-desktop) - A desktop app for PearPass, a password\n- [@tetherto/tether-dev-docs](https://github.com/tetherto/tether-dev-docs) - Documentations and guides for developers\n\n## License\n\nThis project is licensed under the Apache License, Version 2.0. See the [LICENSE](./LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftetherto%2Fpear-apps-utils-date","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftetherto%2Fpear-apps-utils-date","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftetherto%2Fpear-apps-utils-date/lists"}