{"id":16993446,"url":"https://github.com/sthzg/timut","last_synced_at":"2026-04-25T22:32:43.528Z","repository":{"id":79110963,"uuid":"93831163","full_name":"sthzg/timut","owner":"sthzg","description":"Simple timing utils for the poor man's toolbox.","archived":false,"fork":false,"pushed_at":"2017-06-17T20:37:26.000Z","size":37,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2026-03-31T06:35:32.102Z","etag":null,"topics":["devtools","es2015","nodejs","timing","typescript","utils"],"latest_commit_sha":null,"homepage":"","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/sthzg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2017-06-09T07:24:08.000Z","updated_at":"2017-06-26T12:12:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"32cfcbd3-840f-4ddf-a0f3-36bf1e1cec52","html_url":"https://github.com/sthzg/timut","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/sthzg/timut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sthzg%2Ftimut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sthzg%2Ftimut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sthzg%2Ftimut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sthzg%2Ftimut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sthzg","download_url":"https://codeload.github.com/sthzg/timut/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sthzg%2Ftimut/sbom","scorecard":{"id":853146,"data":{"date":"2025-08-11","repo":{"name":"github.com/sthzg/timut","commit":"4c1a014fd270e81e39c84376e87563df1430ac7a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"30 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-6g33-f262-xjp4","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T23:05:21.512Z","repository_id":79110963,"created_at":"2025-08-23T23:05:21.512Z","updated_at":"2025-08-23T23:05:21.512Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32279654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["devtools","es2015","nodejs","timing","typescript","utils"],"created_at":"2024-10-14T03:43:10.913Z","updated_at":"2026-04-25T22:32:43.523Z","avatar_url":"https://github.com/sthzg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Timut\n\n[![npm version](https://badge.fury.io/js/timut.svg)](https://badge.fury.io/js/timut)\n\n\u003e Simple timing utils for the poor man's toolbox.\n \n ## Install\n \n ```bash\nyarn add --dev timut@next # npm install --save-dev timut@next\n```\n \n \n ## Example\n \n ```javascript\n// in somefile.js \nrequire('timut').push('just a message');\n\n// in anotherfile.js\nrequire('timut').push('another message');\n\n// ...push as many messages as required\n\n// wherever\nrequire('timut').log();\n```\n\n`.log()` will output a table including time deltas to the console.\n\n```\nTime          |  Context     |  Message               |  Rel. Delta  |  Abs. Delta\n----------------------------------------------------------------------------------\n00:01:01:007  |  default...  |  just a message......  |         0ms  |         0ms\n00:01:01:019  |  default...  |  another message.....  |       +12ms  |       +12ms\n00:01:01:023  |  default...  |  yet another thing...  |        +4ms  |       +16ms\n```\n\nThis is not fancy, but sometimes useful as a quicker and less complicated inspection tool than\nfull-blown profilers.\n\nThe `require('timut')` syntax is recommended, as it easily allows simple `sed` commands to remove\nall occurrences in the complete codebase.\n\n### Contexts\n\n```javascript\n// You can push messages to different contexts\nrequire('timut').push('hello, message'); // pushes to context `default`\nrequire('timut').push('another context', 'foo'); // pushes to context `foo`\n\n// .log() takes an optional argument to log a context\nrequire('timut').log('foo'); // logs all messages in context `foo`\n\n// to remove all entries for a context\nrequire('timut').resetContext('foo');\n\n// or to reset all contexts\nrequire('timut').reset();\n```\n\n## Library Targets\n\n- browser (`dist/timut.min.js`)\n- commonjs (`lib/index.js`)\n- es2015 modules (`es/index.js`)\n\n## API\n\nSee exports in [index.ts](https://github.com/sthzg/timut/blob/develop/src/index.ts).\n\n## Use Case\n\nThe original use case behind the library was debugging asynchronous Karma tests running in\nPhantomJS, transpiled by Babel and bundled by Webpack. The node debugger was not working reliably.\nInspecting by logging to console has been a pragmatic workaround. \n\nTo inspect the timing and application flow `timut` provides a 'trash-it-after-usage' approach and \nsimply a quick way to get an idea about where some code spends its time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsthzg%2Ftimut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsthzg%2Ftimut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsthzg%2Ftimut/lists"}