{"id":14984971,"url":"https://github.com/ebebbington/context-finder","last_synced_at":"2026-01-20T10:32:17.284Z","repository":{"id":35123209,"uuid":"189674219","full_name":"ebebbington/context-finder","owner":"ebebbington","description":"Search a given file for specific sections/context data, collect this and write to a new file. For Node and Deno.","archived":false,"fork":false,"pushed_at":"2023-05-16T16:58:18.000Z","size":310,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-21T16:44:47.191Z","etag":null,"topics":["cli","context-finder","deno","extracts-contexts","nodejs"],"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/ebebbington.png","metadata":{"funding":{"github":["ebebbington"]},"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}},"created_at":"2019-06-01T00:42:25.000Z","updated_at":"2023-02-16T03:48:30.000Z","dependencies_parsed_at":"2025-02-10T18:10:52.835Z","dependency_job_id":"6662df3c-5b70-4f64-98cd-f614caee03cc","html_url":"https://github.com/ebebbington/context-finder","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ebebbington/context-finder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebebbington%2Fcontext-finder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebebbington%2Fcontext-finder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebebbington%2Fcontext-finder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebebbington%2Fcontext-finder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ebebbington","download_url":"https://codeload.github.com/ebebbington/context-finder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebebbington%2Fcontext-finder/sbom","scorecard":{"id":364559,"data":{"date":"2025-08-11","repo":{"name":"github.com/ebebbington/context-finder","commit":"d30e8f2f32ea417c22d85a8078b43f076b3174ce"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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/26 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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/master.yml:1","Warn: no topLevel permission defined: .github/workflows/pre-release.yml:1","Warn: no topLevel permission defined: .github/workflows/release-drafter.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/master.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/ebebbington/context-finder/master.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/master.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/ebebbington/context-finder/master.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/master.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/ebebbington/context-finder/master.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/master.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/ebebbington/context-finder/master.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/master.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/ebebbington/context-finder/master.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/ebebbington/context-finder/pre-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre-release.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/ebebbington/context-finder/pre-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre-release.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/ebebbington/context-finder/pre-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-drafter.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/ebebbington/context-finder/release-drafter.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/ebebbington/context-finder/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/ebebbington/context-finder/release.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   7 third-party GitHubAction dependencies pinned"],"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 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"}}]},"last_synced_at":"2025-08-18T11:33:49.246Z","repository_id":35123209,"created_at":"2025-08-18T11:33:49.246Z","updated_at":"2025-08-18T11:33:49.246Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28601827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T09:39:28.479Z","status":"ssl_error","status_checked_at":"2026-01-20T09:38:10.511Z","response_time":117,"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":["cli","context-finder","deno","extracts-contexts","nodejs"],"created_at":"2024-09-24T14:10:00.501Z","updated_at":"2026-01-20T10:32:17.267Z","avatar_url":"https://github.com/ebebbington.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ebebbington"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg height=\"200\" src=\"dcf-logo.png\" alt=\"Context Finder\"\u003e\n  \u003ch1 align=\"center\"\u003eContext Finder\u003c/h1\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/ebebbington/context-finder/actions\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/workflow/status/ebebbington/context-finder/master?label=build\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ebebbington/context-finder/releases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/release/ebebbington/context-finder.svg?color=bright_green\u0026label=latest\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ebebbington/context-finder/actions\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/workflow/status/ebebbington/context-finder/CodeQL?label=CodeQL\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://sonarcloud.io/dashboard?id=ebebbington_context-finder\"\u003e\n    \u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=ebebbington_context-finder\u0026metric=alert_status\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/ebebbington/context-finder\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/ebebbington/context-finder/branch/master/graph/badge.svg?token=8VAAXYD33D\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nContext Finder is simple and easy to use. It extracts contexts from (usually)\nconfiguration files. The main use case is extracting contexts from Asterisk\nconfiguration files.\n\nRefer to the example [here](./example)\n\n# Contents\n\n- [Use Case](#use-case)\n- [Requirements](#requirements)\n- [A a Script](#as-a-script)\n- [CLI](#cli)\n- [Built With](#built-with)\n- [License](#license)\n\n# Use Case\n\nYou have a file that holds _context blocks_. That file might look like this:\n\n```\n[user-1]\nname = Edward\nlanguage = en\n\n[user-2]\nname = John\nlanguage = us\n\n[admin-1-1]\nname = Admin Edward\n\n[admin-1-2]\nname = Admin John\n\n[admin-2]\nname = Admin\n```\n\nYou want to extract all `admin-1` contexts. In a single command you can pull\nthat into a resulting file:\n\n```\n[admin-1-1]\nname = Admin Edward\n\n[admin-1-2]\nname = Admin John\n```\n\nThis is where _**Content Finder**_ comes in.\n\n# As a Script\n\n- Import the module\n\n```typescript\nimport { contextFinder } from \"https://deno.land/x/context_finder@v1.1.1/mod.ts\";\n```\n\n- Gather your data and run\n\n```typescript\nconst contextsToFind = [\"version-1.\", \"version-4.\"];\nconst fileToRead = \"all-contexts.txt\"; // this file must exist\nconst fileToWrite = \"some-contexts.txt\";\n\ncontextFinder(contextsToFind, fileToRead, fileToWrite);\n```\n\n# CLI\n\n`deno run --allow-read --allow-write https://deno.land/x/context_finder@v1.1.1/mod.ts \u003cfile to read\u003e \u003cfile to write to\u003e \u003ccontext title 1\u003e \u003ccontext-title 2\u003e ...`\n\n# Built With\n\n- [Deno](https://deno.land) - Runtime Environment\n\n# License\n\nThis project is licensed under the MIT License - see the\n[LICENSE.txt](LICENSE.txt) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febebbington%2Fcontext-finder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Febebbington%2Fcontext-finder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febebbington%2Fcontext-finder/lists"}