{"id":43490037,"url":"https://github.com/clagomess/mapa-brasil","last_synced_at":"2026-02-03T09:46:18.602Z","repository":{"id":38419025,"uuid":"199949251","full_name":"clagomess/mapa-brasil","owner":"clagomess","description":"Gráfico dinámico do mapa do Brasil","archived":false,"fork":false,"pushed_at":"2023-03-15T08:35:57.000Z","size":1966,"stargazers_count":31,"open_issues_count":3,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-06T06:48:14.906Z","etag":null,"topics":["chart","ibge","mapa","svg"],"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/clagomess.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":"2019-08-01T00:45:26.000Z","updated_at":"2025-02-17T12:37:21.000Z","dependencies_parsed_at":"2024-10-30T17:16:08.018Z","dependency_job_id":null,"html_url":"https://github.com/clagomess/mapa-brasil","commit_stats":{"total_commits":107,"total_committers":3,"mean_commits":"35.666666666666664","dds":0.3551401869158879,"last_synced_commit":"56b2b3ae32749258781443cc5500fc3261acd268"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/clagomess/mapa-brasil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clagomess%2Fmapa-brasil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clagomess%2Fmapa-brasil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clagomess%2Fmapa-brasil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clagomess%2Fmapa-brasil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clagomess","download_url":"https://codeload.github.com/clagomess/mapa-brasil/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clagomess%2Fmapa-brasil/sbom","scorecard":{"id":284906,"data":{"date":"2025-08-11","repo":{"name":"github.com/clagomess/mapa-brasil","commit":"56b2b3ae32749258781443cc5500fc3261acd268"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"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":"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/nodejs.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":"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/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":"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":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/clagomess/mapa-brasil/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/clagomess/mapa-brasil/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/clagomess/mapa-brasil/nodejs.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand 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":"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.2 not signed: https://api.github.com/repos/clagomess/mapa-brasil/releases/20934980","Warn: release artifact v1.0.2 does not have provenance: https://api.github.com/repos/clagomess/mapa-brasil/releases/20934980"],"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 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"}},{"name":"Vulnerabilities","score":0,"reason":"32 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-17T16:58:55.683Z","repository_id":38419025,"created_at":"2025-08-17T16:58:55.684Z","updated_at":"2025-08-17T16:58:55.684Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29039964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T09:33:44.148Z","status":"ssl_error","status_checked_at":"2026-02-03T09:33:43.343Z","response_time":96,"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":["chart","ibge","mapa","svg"],"created_at":"2026-02-03T09:46:18.532Z","updated_at":"2026-02-03T09:46:18.594Z","avatar_url":"https://github.com/clagomess.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mapa-brasil\n![GitHub release](https://img.shields.io/github/release/clagomess/mapa-brasil)\n![GitHub package.json version](https://img.shields.io/github/package-json/v/clagomess/mapa-brasil)\n![GitHub Action](https://img.shields.io/github/workflow/status/clagomess/mapa-brasil/Node%20CI)\n\n## Instalação\n```\nnpm install mapa-brasil\n```\n\n## Uso\n### Html\n```html\n\u003cdiv id=\"mapa\" style=\"height: 600px; width: 600px\"\u003e\u003c/div\u003e\n\n\u003cscript type=\"text/javascript\" src=\"mapa-brasil.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n    window.onload = function () {\n        MapaBrasil(document.getElementById('mapa'), {});\n    }\n\u003c/script\u003e\n```\n\n### Javascript\n```javascript\nconst mapaBrasil = require('mapa-brasil');\n\nmapaBrasil(document.getElementById('mapa'), {})\n```\n\n### Typescript\n```typescript\nimport {Component} from '@angular/core';\nimport mapaBrasil from 'mapa-brasil';\n\n@Component({\n  selector: 'app-home',\n  templateUrl: './home.component.html'\n})\nexport class HomeComponent {\n  carregarMapa(){\n    mapaBrasil(document.getElementById('mapa'), {})\n  }\n}\n```\n\n\n## Documentação\n### Main\n`MapaBrasil(element: HTMLElement, options: Options)`\n\n### Options\n| Atributo           | Tipo                                        | Valor Padrão  | Descrição                                                                                                                   |\n|--------------------|---------------------------------------------|---------------|-----------------------------------------------------------------------------------------------------------------------------|\n| dataPath           | `string`                                    | `'/data'`     | URL dos assets                                                                                                              |\n| unidade            | \u003cul\u003e\u003cli\u003e`string`\u003c/li\u003e\u003cli\u003e`number`\u003c/li\u003e\u003c/ul\u003e | `'br'`        | Cód. IBGE ou sigla da UF. Ex.: `52`, `'df'`                                                                                 |\n| regiao             | `string`                                    | `'federacao'` | Valores permitidos:  \u003cul\u003e\u003cli\u003e`'mesorregiao'`\u003c/li\u003e\u003cli\u003e`'microrregiao'`\u003c/li\u003e\u003cli\u003e`'municipio'`\u003c/li\u003e\u003cli\u003e`'federacao'`\u003c/li\u003e\u003c/ul\u003e |\n| defaultFillColor   | `string`                                    | `'#FFF3E3'`   | -                                                                                                                           |\n| defaultStrokeColor | `string`                                    | `'#1F1A17'`   | -                                                                                                                           |\n| unidadeData        | \u003cul\u003e\u003cli\u003e`Array`\u003c/li\u003e\u003cli\u003e`Promise`\u003c/li\u003e\u003c/ul\u003e | -             | -                                                                                                                           |\n| onClick            | `function`                                  | -             | Ex.: `(data) =\u003e {}`                                                                                                         |\n\n## Exemplos\nMais exemplos podem ser vistos em `index.html` no repositório.\n\n### Personalização\n```javascript\nMapaBrasil(document.getElementById('mapa'), {\n    unidadeData: [\n        {codIbge: 52, fillColor: '#d82b40'},\n        {codIbge: 43, fillColor: '#d82b40'},\n        {codIbge: 11, fillColor: '#ffa700', strokeColor: '#008744', strokeWidth: 4},\n    ],\n    onClick: function (data) {console.log(data)}\n});\n```\n\n![Exemplo 001](https://raw.githubusercontent.com/clagomess/mapa-brasil/master/exemplos/exemplo_001.png)\n\n### Brasil -\u003e Município\n```javascript\nMapaBrasil(document.getElementById('mapa'), {\n    onClick: function (data) {\n        MapaBrasil(document.getElementById('mapa'), {\n            unidade: data.codIbge,\n            regiao: 'municipio',\n            onClick: function (data) {\n                console.log(data)\n            }\n        });\n    }\n});\n```\n\n![Exemplo 002](https://raw.githubusercontent.com/clagomess/mapa-brasil/master/exemplos/exemplo_002.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclagomess%2Fmapa-brasil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclagomess%2Fmapa-brasil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclagomess%2Fmapa-brasil/lists"}