{"id":17652399,"url":"https://github.com/bashleigh/shleemy-react","last_synced_at":"2025-06-12T19:06:41.248Z","repository":{"id":103668447,"uuid":"334927196","full_name":"bashleigh/shleemy-react","owner":"bashleigh","description":"Date interval management for react","archived":false,"fork":false,"pushed_at":"2021-02-01T16:42:23.000Z","size":70,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T09:12:56.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bashleigh.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2021-02-01T11:27:04.000Z","updated_at":"2023-03-10T08:05:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d7bb70e-d646-4030-832d-da767d1f1a35","html_url":"https://github.com/bashleigh/shleemy-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bashleigh/shleemy-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashleigh%2Fshleemy-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashleigh%2Fshleemy-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashleigh%2Fshleemy-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashleigh%2Fshleemy-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bashleigh","download_url":"https://codeload.github.com/bashleigh/shleemy-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashleigh%2Fshleemy-react/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259519812,"owners_count":22870368,"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":[],"created_at":"2024-10-23T11:46:53.372Z","updated_at":"2025-06-12T19:06:41.219Z","avatar_url":"https://github.com/bashleigh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shleemy React \nWrapper for [shleemy](https://github.com/bashleigh/shleemy) interval factory\n\n## Install\n\n```bash\n$ yarn add shleemy-react\n```\n\n## Usage\n\n```tsx\nimport React from 'react';\nimport { Shleemy } from 'shleemy-react';\n\nexport const ItemRow = ({name, created, price}: {name: string, created: string, price: number}) =\u003e (\n  \u003ctr\u003e\n    \u003ctd\u003e{name}\u003c/td\u003e\n    \u003ctd\u003e{price}\u003c/td\u003e\n    \u003ctd\u003e\n      \u003cShleemy date={created} /\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n);\n```\nOutputs \n\nname | price | 12 days ago\n\n### Options\n\n```tsx\n\u003cShleemy\n  date={created}\n  rounding=\"floor\"\n  toDate={new Date()}\n  className=\"shleemy-is-so-cool-and-shit\"\n  humanReadable={{\n    future: (value: number, interval: TimeIntervalLabel) =\u003e `starting in ${value} ${ShleemyInterval.pluralInterval(value, interval)}`,\n    future: (value: number, interval: TimeIntervalLabel) =\u003e `created ${value} ${ShleemyInterval.pluralInterval(value, interval)} ago`,\n  }}\n/\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashleigh%2Fshleemy-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbashleigh%2Fshleemy-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashleigh%2Fshleemy-react/lists"}