{"id":13725249,"url":"https://github.com/therealparmesh/snoop","last_synced_at":"2026-04-23T04:02:58.874Z","repository":{"id":37820055,"uuid":"279198413","full_name":"therealparmesh/snoop","owner":"therealparmesh","description":"Easy breezy test spies fo sheezy.","archived":false,"fork":false,"pushed_at":"2023-02-08T10:06:18.000Z","size":376,"stargazers_count":30,"open_issues_count":4,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-19T19:27:32.786Z","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/therealparmesh.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}},"created_at":"2020-07-13T03:17:18.000Z","updated_at":"2024-07-09T16:46:45.000Z","dependencies_parsed_at":"2023-02-10T02:31:10.237Z","dependency_job_id":null,"html_url":"https://github.com/therealparmesh/snoop","commit_stats":{"total_commits":31,"total_committers":3,"mean_commits":"10.333333333333334","dds":0.5161290322580645,"last_synced_commit":"cf0e99da09955165516b66696fb3538ee2ebe57a"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/therealparmesh/snoop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/therealparmesh%2Fsnoop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/therealparmesh%2Fsnoop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/therealparmesh%2Fsnoop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/therealparmesh%2Fsnoop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/therealparmesh","download_url":"https://codeload.github.com/therealparmesh/snoop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/therealparmesh%2Fsnoop/sbom","scorecard":{"id":879950,"data":{"date":"2025-08-11","repo":{"name":"github.com/therealparmesh/snoop","commit":"cf0e99da09955165516b66696fb3538ee2ebe57a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/13 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":"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":"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:0","Info: FSF or OSI recognized license: MIT License: LICENSE: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 'master'"],"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 17 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":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v"],"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-24T07:44:45.663Z","repository_id":37820055,"created_at":"2025-08-24T07:44:45.663Z","updated_at":"2025-08-24T07:44:45.663Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32165201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T02:19:40.750Z","status":"ssl_error","status_checked_at":"2026-04-23T02:17:55.737Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-08-03T01:02:17.032Z","updated_at":"2026-04-23T04:02:58.828Z","avatar_url":"https://github.com/therealparmesh.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# snoop 🎵\n\n\u003e Easy breezy test spies fo sheezy.\n\n![Snoop Dogg](./snoop.gif)\n\n[![npm](https://img.shields.io/npm/v/snoop.svg)](https://www.npmjs.com/package/snoop)\n[![npm](https://img.shields.io/npm/dt/snoop.svg)](https://www.npmjs.com/package/snoop)\n\n## Install\n\n```sh\nnpm install --save-dev snoop\n```\n\n## Usage\n\nSnoop collaborates with everyone.\n\n### With [uvu](https://github.com/lukeed/uvu)\n\n```js\nimport { snoop } from 'snoop';\nimport { test } from 'uvu';\nimport * as assert from 'uvu/assert';\n\nconst add = (a, b) =\u003e a + b;\n\ntest('add', () =\u003e {\n  const addFn = snoop(add);\n  const anotherAddFn = snoop(add);\n\n  addFn.fn(1, 1);\n  anotherAddFn.fn(1, 1);\n  addFn.fn(2, 2);\n  anotherAddFn.fn(2, 2);\n\n  assert.ok(addFn.called);\n  assert.not(addFn.notCalled);\n  assert.not(addFn.calledOnce);\n  assert.is(addFn.callCount, 2);\n  assert.equal(addFn.calls[0].arguments, [1, 1]);\n  assert.equal(addFn.calls[1].arguments, [2, 2]);\n  assert.is(addFn.calls[0].result, 2);\n  assert.is(addFn.calls[1].result, 4);\n  assert.not(addFn.firstCall.error);\n  assert.not(addFn.lastCall.error);\n  assert.ok(addFn.calledBefore(anotherAddFn));\n  assert.ok(addFn.calledAfter(anotherAddFn));\n  assert.ok(addFn.calledImmediatelyBefore(anotherAddFn));\n  assert.not(addFn.calledImmediatelyAfter(anotherAddFn));\n});\n\ntest.run();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftherealparmesh%2Fsnoop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftherealparmesh%2Fsnoop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftherealparmesh%2Fsnoop/lists"}