{"id":41309793,"url":"https://github.com/cezarpretto/cnpj-promise","last_synced_at":"2026-01-23T05:19:26.703Z","repository":{"id":57201731,"uuid":"80376965","full_name":"cezarpretto/cnpj-promise","owner":"cezarpretto","description":"Busca por CNPJ integrado com o webservice da receitaWS.","archived":false,"fork":false,"pushed_at":"2017-07-21T22:02:23.000Z","size":17,"stargazers_count":27,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-25T07:59:35.671Z","etag":null,"topics":["cnpj","javascript","javascript-library","library","promise","promises"],"latest_commit_sha":null,"homepage":"","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/cezarpretto.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-01-29T22:22:08.000Z","updated_at":"2023-07-05T22:19:43.000Z","dependencies_parsed_at":"2022-09-17T08:51:59.747Z","dependency_job_id":null,"html_url":"https://github.com/cezarpretto/cnpj-promise","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cezarpretto/cnpj-promise","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cezarpretto%2Fcnpj-promise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cezarpretto%2Fcnpj-promise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cezarpretto%2Fcnpj-promise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cezarpretto%2Fcnpj-promise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cezarpretto","download_url":"https://codeload.github.com/cezarpretto/cnpj-promise/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cezarpretto%2Fcnpj-promise/sbom","scorecard":{"id":271759,"data":{"date":"2025-08-11","repo":{"name":"github.com/cezarpretto/cnpj-promise","commit":"477ef9402aa330f25742df254a1275096d49d770"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 1/23 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":"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":"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":"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":-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 3 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-17T13:35:02.455Z","repository_id":57201731,"created_at":"2025-08-17T13:35:02.455Z","updated_at":"2025-08-17T13:35:02.455Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28680633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T04:33:33.518Z","status":"ssl_error","status_checked_at":"2026-01-23T04:33:30.433Z","response_time":59,"last_error":"SSL_read: 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":["cnpj","javascript","javascript-library","library","promise","promises"],"created_at":"2026-01-23T05:19:25.751Z","updated_at":"2026-01-23T05:19:26.696Z","avatar_url":"https://github.com/cezarpretto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CNPJ Promise\nBusca por CNPJ integrado com o webservice da receitaWS. Baseado na idéia e arquitetura do [cep-promise](https://github.com/filipedeschamps/cep-promise).\n\n## Como utilizar\n\n### Instalação\n\n```\n$ npm install --save cnpj-promise\n```\n\n### Realizando uma consulta com import\n```js\nimport CnpjPromise from 'cnpj-promise'\n\nCnpjPromise('47508411022559').then(data =\u003e {\n  console.log(data);\n  //   {\n  // \t\"atividade_principal\": [{\n  // \t\t\"text\": \"Comércio varejista de mercadorias em geral, com predominância de produtos alimentícios - hipermercados\",\n  // \t\t\"code\": \"47.11-3-01\"\n  // \t}],\n  // \t\"data_situacao\": \"03/11/2005\",\n  // \t\"complemento\": \"QUADRA L-22\",\n  // \t\"nome\": \"COMPANHIA BRASILEIRA DE DISTRIBUICAO\",\n  // \t\"uf\": \"GO\",\n  // \t\"telefone\": \"(11) 3050-9000\",\n  // \t\"email\": \"paralegal@grupopaodeacucar.com.br\",\n  // \t\"atividades_secundarias\": [{\n  // \t\t\"text\": \"Correspondentes de instituições financeiras\",\n  // \t\t\"code\": \"66.19-3-02\"\n  // \t}, {\n  // \t\t\"text\": \"Comércio varejista de mercadorias em lojas de conveniência\",\n  // \t\t\"code\": \"47.29-6-02\"\n  // \t}, {\n  // \t\t\"text\": \"Atividades de intermediação e agenciamento de serviços e negócios em geral, exceto imobiliários\",\n  // \t\t\"code\": \"74.90-1-04\"\n  // \t}, {\n  // \t\t\"text\": \"Laboratórios fotográficos\",\n  // \t\t\"code\": \"74.20-0-03\"\n  // \t}, {\n  // \t\t\"text\": \"Restaurantes e similares\",\n  // \t\t\"code\": \"56.11-2-01\"\n  // \t}],\n  // \t\"situacao\": \"ATIVA\",\n  // \t\"bairro\": \"SETOR MARISTA\",\n  // \t\"logradouro\": \"AV PORTUGAL\",\n  // \t\"numero\": \"S/N\",\n  // \t\"cep\": \"74.150-030\",\n  // \t\"municipio\": \"GOIANIA\",\n  // \t\"abertura\": \"19/04/2002\",\n  // \t\"natureza_juridica\": \"204-6 - Sociedade Anônima Aberta\",\n  // \t\"fantasia\": \"EXTRA - HIPERMERCADO\",\n  // \t\"cnpj\": \"47.508.411/0225-59\",\n  // \t\"ultima_atualizacao\": \"2016-12-29T05:36:05.722Z\",\n  // \t\"status\": \"OK\",\n  // \t\"tipo\": \"FILIAL\",\n  // \t\"efr\": \"\",\n  // \t\"motivo_situacao\": \"\",\n  // \t\"situacao_especial\": \"\",\n  // \t\"data_situacao_especial\": \"\",\n  // \t\"capital_social\": \"0.00\",\n  // \t\"qsa\": [],\n  // \t\"extra\": {}\n  // }\n}).catch(err =\u003e {\n  console.log(err);\n})\n```\n\n### Realizando uma consulta com require\n\n```js\nvar CnpjPromise = require('cnpj-promise').default\n\nCnpjPromise('47508411022559').then(data =\u003e {\n  console.log(data);\n  //   {\n  // \t\"atividade_principal\": [{\n  // \t\t\"text\": \"Comércio varejista de mercadorias em geral, com predominância de produtos alimentícios - hipermercados\",\n  // \t\t\"code\": \"47.11-3-01\"\n  // \t}],\n  // \t\"data_situacao\": \"03/11/2005\",\n  // \t\"complemento\": \"QUADRA L-22\",\n  // \t\"nome\": \"COMPANHIA BRASILEIRA DE DISTRIBUICAO\",\n  // \t\"uf\": \"GO\",\n  // \t\"telefone\": \"(11) 3050-9000\",\n  // \t\"email\": \"paralegal@grupopaodeacucar.com.br\",\n  // \t\"atividades_secundarias\": [{\n  // \t\t\"text\": \"Correspondentes de instituições financeiras\",\n  // \t\t\"code\": \"66.19-3-02\"\n  // \t}, {\n  // \t\t\"text\": \"Comércio varejista de mercadorias em lojas de conveniência\",\n  // \t\t\"code\": \"47.29-6-02\"\n  // \t}, {\n  // \t\t\"text\": \"Atividades de intermediação e agenciamento de serviços e negócios em geral, exceto imobiliários\",\n  // \t\t\"code\": \"74.90-1-04\"\n  // \t}, {\n  // \t\t\"text\": \"Laboratórios fotográficos\",\n  // \t\t\"code\": \"74.20-0-03\"\n  // \t}, {\n  // \t\t\"text\": \"Restaurantes e similares\",\n  // \t\t\"code\": \"56.11-2-01\"\n  // \t}],\n  // \t\"situacao\": \"ATIVA\",\n  // \t\"bairro\": \"SETOR MARISTA\",\n  // \t\"logradouro\": \"AV PORTUGAL\",\n  // \t\"numero\": \"S/N\",\n  // \t\"cep\": \"74.150-030\",\n  // \t\"municipio\": \"GOIANIA\",\n  // \t\"abertura\": \"19/04/2002\",\n  // \t\"natureza_juridica\": \"204-6 - Sociedade Anônima Aberta\",\n  // \t\"fantasia\": \"EXTRA - HIPERMERCADO\",\n  // \t\"cnpj\": \"47.508.411/0225-59\",\n  // \t\"ultima_atualizacao\": \"2016-12-29T05:36:05.722Z\",\n  // \t\"status\": \"OK\",\n  // \t\"tipo\": \"FILIAL\",\n  // \t\"efr\": \"\",\n  // \t\"motivo_situacao\": \"\",\n  // \t\"situacao_especial\": \"\",\n  // \t\"data_situacao_especial\": \"\",\n  // \t\"capital_social\": \"0.00\",\n  // \t\"qsa\": [],\n  // \t\"extra\": {}\n  // }\n}).catch(err =\u003e {\n  console.log(err);\n})\n```\n\n### Parametro options\n\nOpcionalmente você pode configurar a requisição passando o parametro *options*.\nConsulte a documentação das dependencias desse projeto para saber como usar essa funcionalidade.\n\n\n```js\nconst options = {\n      timeout: 6000,\n      method: 'GET',\n      mode: 'cors',\n      headers: {\n        'content-type': 'application/json;charset=utf-8'\n      }\n  }\n\nCnpjPromise(cnpj, options).then(data =\u003e {\n//CnpjPromise('14994399000188', options).then(data =\u003e {\n  console.log(data);\n}).catch(err =\u003e {\n  console.log(err);\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcezarpretto%2Fcnpj-promise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcezarpretto%2Fcnpj-promise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcezarpretto%2Fcnpj-promise/lists"}