{"id":17673625,"url":"https://github.com/codetheweb/literature-clock","last_synced_at":"2025-05-12T19:27:23.599Z","repository":{"id":43995183,"uuid":"239651892","full_name":"codetheweb/literature-clock","owner":"codetheweb","description":"Returns a random quote containing the passed time.","archived":false,"fork":false,"pushed_at":"2022-02-13T01:02:27.000Z","size":682,"stargazers_count":7,"open_issues_count":8,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T01:07:38.370Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/codetheweb.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":"2020-02-11T01:39:49.000Z","updated_at":"2024-09-25T22:26:35.000Z","dependencies_parsed_at":"2022-09-05T21:40:39.200Z","dependency_job_id":null,"html_url":"https://github.com/codetheweb/literature-clock","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codetheweb%2Fliterature-clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codetheweb%2Fliterature-clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codetheweb%2Fliterature-clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codetheweb%2Fliterature-clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codetheweb","download_url":"https://codeload.github.com/codetheweb/literature-clock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253807547,"owners_count":21967379,"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-24T05:42:40.069Z","updated_at":"2025-05-12T19:27:23.579Z","avatar_url":"https://github.com/codetheweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# literature-clock\n\nReturns a random quote containing the passed time. \n\n## Installation\n\n`yarn add literature-clock` or `npm install literature-clock`.\n\n## Usage\n\nSuper simple. This:\n\n```javascript\nconst getQuote = require('literature-clock');\n\nconst now = new Date();\n\nconsole.log(getQuote(now));\n```\n\nwill result in something like this:\n\n```javascript\n{\n  time: '8.44!',\n  book: 'Around the World in Eighty Days',\n  author: 'Jules Verne',\n  prefix: `The clock's pendulum beat every second with mathematical regularity, and each player could count every sixtieth of a minute as it struck his ear.\"`,\n  suffix: '\" said John Sullivan, in a voice that betrayed his emotion.Only one minute more and the wager would be won.'\n}\n```\n\n\n## Credits\n\nInspired by the [webapp](https://github.com/JohannesNE/literature-clock) (which in turn was inspired by the [Kindle project](https://www.instructables.com/id/Literary-Clock-Made-From-E-reader/)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodetheweb%2Fliterature-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodetheweb%2Fliterature-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodetheweb%2Fliterature-clock/lists"}