{"id":15881509,"url":"https://github.com/bartlomiejzuber/hooked-react-stopwatch","last_synced_at":"2025-03-17T13:31:18.406Z","repository":{"id":34944685,"uuid":"109300541","full_name":"bartlomiejzuber/hooked-react-stopwatch","owner":"bartlomiejzuber","description":"React stopwatch component made with Hooks API","archived":false,"fork":false,"pushed_at":"2022-12-10T19:42:33.000Z","size":3270,"stargazers_count":3,"open_issues_count":15,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T00:12:42.795Z","etag":null,"topics":["component","react","react-components","stopwatch","umd"],"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/bartlomiejzuber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-02T17:59:41.000Z","updated_at":"2022-06-28T02:39:29.000Z","dependencies_parsed_at":"2023-01-15T11:00:57.247Z","dependency_job_id":null,"html_url":"https://github.com/bartlomiejzuber/hooked-react-stopwatch","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/bartlomiejzuber%2Fhooked-react-stopwatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartlomiejzuber%2Fhooked-react-stopwatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartlomiejzuber%2Fhooked-react-stopwatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartlomiejzuber%2Fhooked-react-stopwatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bartlomiejzuber","download_url":"https://codeload.github.com/bartlomiejzuber/hooked-react-stopwatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243864629,"owners_count":20360356,"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":["component","react","react-components","stopwatch","umd"],"created_at":"2024-10-06T03:42:01.777Z","updated_at":"2025-03-17T13:31:17.933Z","avatar_url":"https://github.com/bartlomiejzuber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## hooked-react-stopwatch\n\n[![npm](https://img.shields.io/npm/l/hooked-react-stopwatch.svg)](https://www.npmjs.com/package/hooked-react-stopwatch)\n[![Coverage Status](https://coveralls.io/repos/github/bartlomiejzuber/hooked-react-stopwatch/badge.svg)](https://coveralls.io/github/bartlomiejzuber/hooked-react-stopwatch)\n[![Build Status](https://travis-ci.org/bartlomiejzuber/hooked-react-stopwatch.svg?branch=master)](https://travis-ci.org/bartlomiejzuber/hooked-react-stopwatch)\n[![License](https://img.shields.io/npm/v/hooked-react-stopwatch.svg)](https://github.com/bartlomiejzuber/hooked-bitcoin-text-editor/blob/master/LICENSE)\n[![Netlify Status](https://api.netlify.com/api/v1/badges/687ea567-73f1-43ad-98c8-18c33994a609/deploy-status)](https://app.netlify.com/sites/hooked-react-stopwatch/deploys)\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/Bajtas/bjts-react-stopwatch/blob/master/images/stopwatch.jpg?raw=true\" alt=\"How component looks\"/\u003e\n\u003c/p\u003e\n\nHighly extensible, created without single `class` used but with pure :heart: to Hooks API.\nShipped with basic CSS style!\n\n[DEMO](https://hooked-react-stopwatch.netlify.com/)\n\n\n## Installation\n\n```sh\nnpm i hooked-react-stopwatch --save\n```\n\nAlternatively you may use `yarn`:\n\n```sh\nyarn add hooked-react-stopwatch\n```\n\nLink to npm:\n[https://www.npmjs.com/package/hooked-react-stopwatch](https://www.npmjs.com/package/hooked-react-stopwatch)\n\n## Usage\n\n```javascript\nimport React, { Component } from 'react';\nimport { Stopwatch } from \"hooked-react-stopwatch\";\nimport \"hooked-react-stopwatch/css/style.css\"; // optional\n\nclass App extends Component {\n  render() {\n    return (\n      \u003cdiv className=\"App\"\u003e\n        \u003cStopwatch /\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n\nexport default App;\n```\n\n### Props\n\n```javascript\nStopWatch.propTypes = {\n  // custom classNames\n  stopwatchClassName: PropTypes.string,\n  timeContainerClassName: PropTypes.string,\n  controlsClassName: PropTypes.string,\n  playIconClassName: PropTypes.string,\n  pauseIconClassName: PropTypes.string,\n  resetIconClassName: PropTypes.string,\n  renderControls: PropTypes.func, // custom render function for controls section\n  hideHours: PropTypes.bool, // hide hours\n  hideMinutes: PropTypes.bool, // hide minutes\n  hideSeconds: PropTypes.bool, // hide seconds\n  hideMilliseconds: PropTypes.bool, // hide milliseconds\n  separators: PropTypes.arrayOf(PropTypes.string) // separators to use between hours/minutes/seconds/milliseconds\n  // separator use example: [\":\"/*separatorBetweenHoursAndMinutes*/, \":\"/*separatorBetweenMinutesAndSeconds*/, \".\"/*separatorBetweenSecondsAndMilliseconds*/]\n};\n```\n\nLicense:\n--------\n\nMade with :sparkling_heart: by [Bartlomiej Zuber (bartlomiej.zuber@outlook.com)](mailto:bartlomiej.zuber@outlook.com) while traveling around the world, and licensed under the [MIT License](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartlomiejzuber%2Fhooked-react-stopwatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbartlomiejzuber%2Fhooked-react-stopwatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartlomiejzuber%2Fhooked-react-stopwatch/lists"}