{"id":14984952,"url":"https://github.com/shevernitskiy/post-calculator","last_synced_at":"2026-01-07T17:06:46.463Z","repository":{"id":250252964,"uuid":"833945964","full_name":"shevernitskiy/post-calculator","owner":"shevernitskiy","description":"📦RussianPost calculator API client","archived":false,"fork":false,"pushed_at":"2024-07-26T13:30:02.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T00:23:26.374Z","etag":null,"topics":["api","client","deno","javascript","js","node","nodejs","pochta","post","russianpost","tariff","ts","typescript"],"latest_commit_sha":null,"homepage":"","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/shevernitskiy.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":"2024-07-26T05:17:01.000Z","updated_at":"2024-07-26T13:29:54.000Z","dependencies_parsed_at":"2024-07-26T05:25:46.409Z","dependency_job_id":"5374e645-54ca-44ff-8560-906c5f10a374","html_url":"https://github.com/shevernitskiy/post-calculator","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.4285714285714286,"last_synced_commit":"a075125fe3c7c27b4ea26dba18a2cfd04a1a7903"},"previous_names":["shevernitskiy/post-calculator"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shevernitskiy%2Fpost-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shevernitskiy%2Fpost-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shevernitskiy%2Fpost-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shevernitskiy%2Fpost-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shevernitskiy","download_url":"https://codeload.github.com/shevernitskiy/post-calculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246114176,"owners_count":20725588,"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","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":["api","client","deno","javascript","js","node","nodejs","pochta","post","russianpost","tariff","ts","typescript"],"created_at":"2024-09-24T14:09:54.811Z","updated_at":"2026-01-07T17:06:46.443Z","avatar_url":"https://github.com/shevernitskiy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦RussianPost calculator API client\n\n[![npm](https://img.shields.io/npm/v/@shevernitskiy/post-calculator?logo=npm\u0026style=flat\u0026labelColor=000)](https://www.npmjs.com/package/@shevernitskiy/post-calculator)\n[![JSR](https://jsr.io/badges/@shevernitskiy/post-calculator)](https://jsr.io/@shevernitskiy/post-calculator)\n![dependencies](https://img.shields.io/badge/dependencies-0-green?style=flat\u0026labelColor=000)\n[![license](https://img.shields.io/github/license/shevernitskiy/post-calculator?style=flat\u0026labelColor=000)](https://github.com/shevernitskiy/post-calculator/blob/main/LICENSE)\n\nThis is super simple typed API client for RussianPost Calculator API.\nIt just fetch calculator response from the API.\n\n# Installation\n\n## Node.js\n\n```sh\nnpm i @shevernitskiy/post-calculator\n```\n\n```sh\nnpx jsr add @shevernitskiy/post-calculator\n```\n\n## Deno\n\n```sh\ndeno add @shevernitskiy/post-calculator\n```\n\n# Usage\n\nCall the `postCalculator` function with the required parameters (typed as well).\n\n```ts\nimport { postCalculator } from \"@shevernitskiy/post-calculator\";\n\nconst result = await postCalculator({\n  object: 27030,\n  from: 115211,\n  to: 620000,\n  weight: 1000,\n});\n\n// result will be typeof PostCalcResponse (typed json)\n\nconst result2 = await postCalculator({\n  format: \"html\",\n  object: 27030,\n  from: 115211,\n  to: 620000,\n  weight: 1000,\n});\n\n// result2 will be typeof string\n```\n\n# Contribution\n\nPull request, issues and feedback are very welcome. Code style is formatted with deno fmt.\n\n# License\n\nCopyright 2024, shevernitskiy. MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshevernitskiy%2Fpost-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshevernitskiy%2Fpost-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshevernitskiy%2Fpost-calculator/lists"}