{"id":19559989,"url":"https://github.com/plotdb/pdmap-world","last_synced_at":"2026-06-10T02:31:36.478Z","repository":{"id":47599224,"uuid":"334834244","full_name":"plotdb/pdmap-world","owner":"plotdb","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-22T00:17:54.000Z","size":1421,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-20T02:16:55.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plotdb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-01T04:53:26.000Z","updated_at":"2022-01-22T00:16:25.000Z","dependencies_parsed_at":"2022-08-19T06:31:37.439Z","dependency_job_id":null,"html_url":"https://github.com/plotdb/pdmap-world","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/plotdb/pdmap-world","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fpdmap-world","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fpdmap-world/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fpdmap-world/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fpdmap-world/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plotdb","download_url":"https://codeload.github.com/plotdb/pdmap-world/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fpdmap-world/sbom","scorecard":{"id":738022,"data":{"date":"2025-08-11","repo":{"name":"github.com/plotdb/pdmap-world","commit":"223cec494428ac5575f369639db7ab9997ac2110"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"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":"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":"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":"Code-Review","score":1,"reason":"Found 1/9 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.5 not signed: https://api.github.com/repos/plotdb/pdmap-world/releases/57731307","Warn: release artifact v0.0.4 not signed: https://api.github.com/repos/plotdb/pdmap-world/releases/48244078","Warn: release artifact v0.0.3 not signed: https://api.github.com/repos/plotdb/pdmap-world/releases/43816124","Warn: release artifact v0.0.2 not signed: https://api.github.com/repos/plotdb/pdmap-world/releases/37161277","Warn: release artifact v0.0.1 not signed: https://api.github.com/repos/plotdb/pdmap-world/releases/37160234","Warn: release artifact v0.0.5 does not have provenance: https://api.github.com/repos/plotdb/pdmap-world/releases/57731307","Warn: release artifact v0.0.4 does not have provenance: https://api.github.com/repos/plotdb/pdmap-world/releases/48244078","Warn: release artifact v0.0.3 does not have provenance: https://api.github.com/repos/plotdb/pdmap-world/releases/43816124","Warn: release artifact v0.0.2 does not have provenance: https://api.github.com/repos/plotdb/pdmap-world/releases/37161277","Warn: release artifact v0.0.1 does not have provenance: https://api.github.com/repos/plotdb/pdmap-world/releases/37160234"],"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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":"29 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-vc8w-jr9v-vj7f","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-vp56-6g26-6827","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-3965-hpx2-q597","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"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-22T16:29:03.310Z","repository_id":47599224,"created_at":"2025-08-22T16:29:03.310Z","updated_at":"2025-08-22T16:29:03.310Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34134633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":[],"created_at":"2024-11-11T05:05:13.973Z","updated_at":"2026-06-10T02:31:36.458Z","avatar_url":"https://github.com/plotdb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdmap-world\n\nWorld map in D3js and ISO 3166 country code. \n\n\n## Usage\n\ninclude required JS files:\n\n    \u003cscript src=\"https://d3js.org/d3.v4.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"https://d3js.org/topojson.v2.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"path-to-your-pdmap-world.js\"\u003e\u003c/script\u003e\n\nthen, init with following:\n\n    p = new pdmapWorld({ ... })\n    p.init().then(function() {  p.fit();  ...  })\n\n\ncountry paths will be added under a SVG `g` element with `pdmap-world` class. pdmap-world only draws countries. To further visualize your data, you have to do it yourself, such as:\n\n    # if you call `p.set` first:   \n    d3.select(root).selectAll(\"path\")\n      .attr \"fill\", (d,i) ~\u003e\n        v = d.properties.value or 0\n        if v \u003c= 0 =\u003e return \\#eee\n        \"rgb(#{255 * (d.properties.value or 0) / p.range!},0,0)\"\n\n    # or bind data with country yourself:\n    d3.select(root).selectAll(\"path\")\n      .attr \"fill\", (d,i) ~\u003e\n        v = data[d.properties.alpha2]\n        if v \u003c= 0 =\u003e return \\#eee\n        \"rgb(#{255 * (v) / max},0,0)\"\n\n\n## Constructor options\n\n - `root`: container element.\n - `excludes`: Array of country identifiers ( see below ). countries listed here will not be shown.\n - `includes`: Array of country identifiers ( see below ). countries not listed here will not be shonw.\n   - when `includes` is set, `excludes` will be ignored.\n - `padding`: padding space between container and map shapes.\n - `popup`: handler called when mouse hovering on shapes.\n\n\n## API\n\n - `init()`: initialization.\n - `set(hash)`: set values for each country. country name as key in hash, value as value in hash.\n - `range()`: get `[minimal, maximal]` values from `set` calls.\n - `allCountries()`: get a list of all countries.\n - `fit()`: fix map to size of container.\n - `findCountry(n)`: return a country object according to country identifier `n` ( see below )\n\n\n## Country Identifiers\n\nThere are many ways to identify a country. Here we use following identifiers:\n\n - iso 3166 country code, including:\n   - Alpha-2 code ( e.g., `KP` for North Korea, `GB` for United Kingdon. )\n   - Alpha-3 code ( e.g., `USA` for United States, `JPN` for Japan )\n   - Short name ( e.g., `Afghanistan`, `Congo (the)` )\n   - Numeric ( e.g., `156` for China, `524` for Nepal )\n - Common name in zh-TW ( e.g., `阿爾巴尼亞`, `波希尼亞及赫塞哥維那` )\n\nFollowing is an example to refer some countries with a list, which can be used as `excludes` / `includes` option:\n\n    [\"KP\", \"USA\", \"Afghanistan\", 156, \"波希尼亞及赫塞哥維那\"]\n\nAll codes are case insensitive.\n\n\n## Data Resources\n\n - map data: [natural-earth-vector](https://github.com/nvkelso/natural-earth-vector)\n - country code: [iso 3166 country codes](https://www.iso.org/iso-3166-country-codes.html)\n\n\n## License\n\n - Code: MIT\n - Data: \n   - map data: Public Domain\n   - country code: should be(?) Public Domain\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplotdb%2Fpdmap-world","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplotdb%2Fpdmap-world","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplotdb%2Fpdmap-world/lists"}