{"id":22690102,"url":"https://github.com/web-mech/stopwatch-stream","last_synced_at":"2025-03-29T16:21:52.044Z","repository":{"id":66228800,"uuid":"90569866","full_name":"web-mech/stopwatch-stream","owner":"web-mech","description":"A streaming human readable stopwatch","archived":false,"fork":false,"pushed_at":"2017-05-08T04:56:46.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-07T20:38:22.735Z","etag":null,"topics":[],"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/web-mech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2017-05-08T00:06:31.000Z","updated_at":"2017-05-08T04:57:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"beb1f7d6-2fa6-49f9-a3bb-529e5358c15a","html_url":"https://github.com/web-mech/stopwatch-stream","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-mech%2Fstopwatch-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-mech%2Fstopwatch-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-mech%2Fstopwatch-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-mech%2Fstopwatch-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web-mech","download_url":"https://codeload.github.com/web-mech/stopwatch-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246208179,"owners_count":20740842,"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-12-10T00:26:16.141Z","updated_at":"2025-03-29T16:21:51.985Z","avatar_url":"https://github.com/web-mech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stopwatch-stream\n\nA streaming human readable stopwatch. \n\n[![Build Status](https://travis-ci.org/web-mech/stopwatch-stream.svg?branch=master)](https://travis-ci.org/web-mech/stopwatch-stream)\n\nExposes an RxJS [Observable](http://reactivex.io/rxjs/class/es6/Observable.js~Observable.html)\n\n## Default Format\n\n```\n00:00:00\n```\n\n## Usage;\n\n```\nconst stopWatch = require('stopwatch-stream');\nconst sw = stopWatch();\n```\n\n### Basic\n```\nsw.stream.subscribe((s) =\u003e {\n\tconsole.log(s); //00:00:00 ...\n});\nsw.start();\n```\n\n### Pausing\n\n```\nsw.stream.subscribe((s) =\u003e {\n\tconsole.log(s);\n});\n\nsw.start();\n\nsw.stop();\n```\n\n### Current\n\n```\nsw.current(); // 00:00:00\n```\n\n### Cleanup\n\n```\nsw.stream.subscribe((s) =\u003e {\n\tconsole.log(s);\n});\n\nsw.start();\n\nsw.stop();\n\nsw.complete();\n```\n\n### Options\n\n#### Stream on init\n\n```\nconst sw = stopWatch({\n\ton: true\n});\n\nsw.stream.subscribe((s) =\u003e {\n\tconsole.log(s);\n});\n\n```\n\n#### Stopwatch format\n\n```\n const sw = stopWatch({\n    format: '000',\n    delimiter: '.'\n  });\n sw.current(); // '00:00.000'\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-mech%2Fstopwatch-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb-mech%2Fstopwatch-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-mech%2Fstopwatch-stream/lists"}