{"id":26590115,"url":"https://github.com/peralva/npm-jamef","last_synced_at":"2026-02-16T17:02:49.805Z","repository":{"id":282891589,"uuid":"947862343","full_name":"peralva/npm-jamef","owner":"peralva","description":"NPM Jamef","archived":false,"fork":false,"pushed_at":"2025-03-20T19:11:51.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T00:39:52.469Z","etag":null,"topics":["jamef","npm","sdk"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/jamef","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/peralva.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":"2025-03-13T11:13:54.000Z","updated_at":"2025-03-20T19:11:28.000Z","dependencies_parsed_at":"2025-03-17T14:47:02.647Z","dependency_job_id":null,"html_url":"https://github.com/peralva/npm-jamef","commit_stats":null,"previous_names":["peralva/npm-jamef"],"tags_count":1,"template":false,"template_full_name":"peralva/npm-template","purl":"pkg:github/peralva/npm-jamef","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peralva%2Fnpm-jamef","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peralva%2Fnpm-jamef/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peralva%2Fnpm-jamef/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peralva%2Fnpm-jamef/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peralva","download_url":"https://codeload.github.com/peralva/npm-jamef/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peralva%2Fnpm-jamef/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29513435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"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":["jamef","npm","sdk"],"created_at":"2025-03-23T13:20:53.345Z","updated_at":"2026-02-16T17:02:49.788Z","avatar_url":"https://github.com/peralva.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jamef\n\nJamef\n\n[![NPM Version](https://img.shields.io/npm/v/jamef)](https://www.npmjs.com/package/jamef?activeTab=versions)\n[![GitHub Release Date](https://img.shields.io/github/release-date/peralva/npm-jamef)](https://github.com/peralva/npm-jamef/releases)\n[![GitHub License](https://img.shields.io/github/license/peralva/npm-jamef)](https://github.com/peralva/npm-jamef?tab=MIT-1-ov-file#readme)\n[![NPM Downloads](https://img.shields.io/npm/dm/jamef)](https://www.npmjs.com/package/jamef)\n[![NPM Publish](https://github.com/peralva/npm-jamef/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/peralva/npm-jamef/actions/workflows/npm-publish.yml)\n\n## Installation\n\n```bash\nnpm install --save jamef\n```\n\n## Usage\n\n```ts\nimport { Jamef } from 'jamef';\n\nconst jamef = new Jamef('sistemas@jamef.com.br', '12343456');\n\n(async () =\u003e {\n\tconst response = await jamef.sendInvoice({\n\t\tnotasFiscais: [\n\t\t\t{\n\t\t\t\tremetente: {\n\t\t\t\t\tdocumento: '12345678000123',\n\t\t\t\t\tnome: 'EMPRESA EXEMPLO LTDA',\n\t\t\t\t\tlogradouro: 'RUA DAS FLORES',\n\t\t\t\t\tnumeroEndereco: '500',\n\t\t\t\t\tcomplementoEndereco: 'BLOCO A',\n\t\t\t\t\tbairro: 'CENTRO',\n\t\t\t\t\tcodigoIbge: '1234567',\n\t\t\t\t\tmunicipio: 'EXEMPLOMUNI',\n\t\t\t\t\testado: 'EX',\n\t\t\t\t\tcep: '12345000',\n\t\t\t\t\ttelefone: '40028922',\n\t\t\t\t\tinscricaoEstadual: 'ISENTO',\n\t\t\t\t\temail: 'contato@exemplo.com',\n\t\t\t\t},\n\t\t\t\tdestinatario: {\n\t\t\t\t\tdocumento: '98765432000198',\n\t\t\t\t\tnome: 'CLIENTE EXEMPLAR S/A',\n\t\t\t\t\tlogradouro: 'AV. DOS NEGÓCIOS',\n\t\t\t\t\tnumeroEndereco: '1000',\n\t\t\t\t\tcomplementoEndereco: 'TORRE 2',\n\t\t\t\t\tbairro: 'NEGÓCIOS',\n\t\t\t\t\tcodigoIbge: '7654321',\n\t\t\t\t\tindicadorInscricaoEstadual: '1',\n\t\t\t\t\tmunicipio: 'EXEMPLOMUNI',\n\t\t\t\t\testado: 'NG',\n\t\t\t\t\tcep: '98765000',\n\t\t\t\t\ttelefone: '08001234567',\n\t\t\t\t\tinscricaoEstadual: '123456789',\n\t\t\t\t\temail: 'exemplo@cliente.com',\n\t\t\t\t},\n\t\t\t\tfrete: {\n\t\t\t\t\tpagadorFrete: '1',\n\t\t\t\t\ttipoNotaFiscal: '1',\n\t\t\t\t\tnumeroNotaFiscal: '123456',\n\t\t\t\t\tserieNotaFiscal: '1',\n\t\t\t\t\tdataEmissaoNotaFiscal: new Date('2023-12-18'),\n\t\t\t\t\tquantidadeVolumeNotaFiscal: 5,\n\t\t\t\t\tpesoNotaFiscal: 50,\n\t\t\t\t\tpesoCubadoNotaFiscal: 0.75,\n\t\t\t\t\tmetragemCubica: 0.05,\n\t\t\t\t\tvalorNotaFiscal: 1000,\n\t\t\t\t\tcfop: '5102',\n\t\t\t\t\tnumeroPedido: '',\n\t\t\t\t\tchaveNotaFiscal: '12345678901234567890123456789012345678901234',\n\t\t\t\t\tvideNotaFiscal: '2',\n\t\t\t\t\tclienteRetira: '2',\n\t\t\t\t\tfilialNotaFiscal: '01',\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t});\n\n\tif (response.status !== 200) {\n\t\tlet messageError;\n\n\t\tif ('mensagem' in response.body) {\n\t\t\tmessageError = response.body.mensagem;\n\t\t} else {\n\t\t\tmessageError = response.body.error;\n\t\t}\n\n\t\tthrow new Error(messageError);\n\t}\n\n\tconsole.log(response.body.dado[0]);\n})();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperalva%2Fnpm-jamef","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperalva%2Fnpm-jamef","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperalva%2Fnpm-jamef/lists"}