{"id":16928395,"url":"https://github.com/knqyf263/go-cpe","last_synced_at":"2025-07-24T03:06:22.449Z","repository":{"id":55694028,"uuid":"118722299","full_name":"knqyf263/go-cpe","owner":"knqyf263","description":"A Go library for CPE (A Common Platform Enumeration 2.3)","archived":false,"fork":false,"pushed_at":"2023-06-27T04:18:56.000Z","size":7622,"stargazers_count":35,"open_issues_count":3,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T06:33:16.623Z","etag":null,"topics":["cpe","security","security-tools"],"latest_commit_sha":null,"homepage":"","language":"Go","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/knqyf263.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-01-24T06:24:42.000Z","updated_at":"2025-01-06T02:48:06.000Z","dependencies_parsed_at":"2024-06-18T16:58:36.010Z","dependency_job_id":"d1762478-80d5-4189-8711-6de46b3c0344","html_url":"https://github.com/knqyf263/go-cpe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/knqyf263/go-cpe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knqyf263%2Fgo-cpe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knqyf263%2Fgo-cpe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knqyf263%2Fgo-cpe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knqyf263%2Fgo-cpe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knqyf263","download_url":"https://codeload.github.com/knqyf263/go-cpe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knqyf263%2Fgo-cpe/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266786798,"owners_count":23983871,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cpe","security","security-tools"],"created_at":"2024-10-13T20:36:39.260Z","updated_at":"2025-07-24T03:06:22.429Z","avatar_url":"https://github.com/knqyf263.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-cpe\n\n[![Build Status](https://travis-ci.org/knqyf263/go-cpe.svg?branch=master)](https://travis-ci.org/knqyf263/go-cpe)\n[![Coverage Status](https://coveralls.io/repos/github/knqyf263/go-cpe/badge.svg?branch=initial)](https://coveralls.io/github/knqyf263/go-cpe?branch=initial)\n[![Go Report Card](https://goreportcard.com/badge/github.com/knqyf263/go-cpe)](https://goreportcard.com/report/github.com/knqyf263/go-cpe)\n[![GoDoc](https://godoc.org/github.com/knqyf263/go-cpe?status.svg)](https://godoc.org/github.com/knqyf263/go-cpe)\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](/LICENSE)\n\nA Go library for [CPE(A Common Platform Enumeration 2.3)](https://cpe.mitre.org/specification/)\n\n`go-cpe` is a implementation of the CPE Naming and Matching algorithms, as described in NIST IRs [7695](https://csrc.nist.gov/publications/detail/nistir/7695/final) and [7696](https://csrc.nist.gov/publications/detail/nistir/7696/final).  \n\nFor the reference Java implementation, see: https://cpe.mitre.org/specification/CPE_Reference_Implementation_Sep2011.zipx\n\n# Installation and Usage\n\nInstallation can be done with a normal go get:\n\n```\n$ go get github.com/knqyf263/go-cpe/...\n```\n\n## Compare\nSee [example](/examples)\n\n```\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/knqyf263/go-cpe/matching\"\n\t\"github.com/knqyf263/go-cpe/naming\"\n)\n\nfunc main() {\n\twfn, err := naming.UnbindURI(\"cpe:/a:microsoft:internet_explorer%01%01%01%01:8%02:beta\")\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\twfn2, err := naming.UnbindFS(`cpe:2.3:a:microsoft:internet_explorer:8.0.6001:beta:*:*:*:*:*:*`)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tfmt.Println(matching.IsDisjoint(wfn, wfn2))\n\tfmt.Println(matching.IsEqual(wfn, wfn2))\n\tfmt.Println(matching.IsSubset(wfn, wfn2))\n\tfmt.Println(matching.IsSuperset(wfn, wfn2))\n}\n```\n\n# Contribute\n\n1. fork a repository: github.com/knqyf263/go-cpe to github.com/you/repo\n2. get original code: `go get github.com/knqyf263/go-cpe`\n3. work on original code\n4. add remote to your repo: git remote add myfork https://github.com/you/repo.git\n5. push your changes: git push myfork\n6. create a new Pull Request\n\n- see [GitHub and Go: forking, pull requests, and go-getting](http://blog.campoy.cat/2014/03/github-and-go-forking-pull-requests-and.html)\n\n----\n\n# License\nMIT\n\n# Author\nTeppei Fukuda\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknqyf263%2Fgo-cpe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknqyf263%2Fgo-cpe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknqyf263%2Fgo-cpe/lists"}