{"id":15692843,"url":"https://github.com/ultirequiem/sum-digits","last_synced_at":"2025-12-11T21:14:44.841Z","repository":{"id":62422348,"uuid":"410618273","full_name":"UltiRequiem/sum-digits","owner":"UltiRequiem","description":"📘  Sum Digits of a number","archived":false,"fork":false,"pushed_at":"2022-03-20T01:06:09.000Z","size":5,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-08T03:18:15.849Z","etag":null,"topics":["deno","denoland","javascript","math","sum","typescript"],"latest_commit_sha":null,"homepage":"https://deno.land/x/sum_digits","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/UltiRequiem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-26T17:32:22.000Z","updated_at":"2022-04-04T21:39:42.000Z","dependencies_parsed_at":"2022-11-01T17:32:36.885Z","dependency_job_id":null,"html_url":"https://github.com/UltiRequiem/sum-digits","commit_stats":null,"previous_names":["ultirequiem/deno-sum-digits"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fsum-digits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fsum-digits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fsum-digits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fsum-digits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UltiRequiem","download_url":"https://codeload.github.com/UltiRequiem/sum-digits/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252990024,"owners_count":21836669,"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":["deno","denoland","javascript","math","sum","typescript"],"created_at":"2024-10-03T18:40:29.487Z","updated_at":"2025-12-11T21:14:44.429Z","avatar_url":"https://github.com/UltiRequiem.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sum Digits\n\n[![GitMoji](https://img.shields.io/badge/Gitmoji-%F0%9F%8E%A8%20-FFDD67.svg)](https://gitmoji.dev)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n![Lines Of Code](https://img.shields.io/tokei/lines/github.com/UltiRequiem/deno-sum-digits?color=blue\u0026label=Total%20Lines)\n![CodeQL](https://github.com/UltiRequiem/deno-sum-digits/workflows/CodeQL/badge.svg)\n\nYou can get this package by [nest.land](https://nest.land/package/sum_digits) or\n[deno.land](https://deno.land/x/sum_digits).\n\n## Usage\n\nThis package exposes two Functions,\n[sumDigits](https://github.com/UltiRequiem/deno-sum-digits/blob/main/mod.ts#L9)\nand\n[sumDigitsSync](https://github.com/UltiRequiem/deno-sum-digits/blob/main/mod.ts#L18).\n\n```typescript\nimport sumDigits, {\n  sumDigitsSync,\n} from \"https://deno.land/x/sum_digits/mod.ts\";\n\nconsole.log(await sumDigits(45)); // 9\nconsole.log(await sumDigits(\"450\")); // 9\n\nasync function somethingAsync() {\n  console.log(await sumDigits(\"92\"));\n}\n\nsomethingAsync(); // 11\n\nsumDigits(123).then((number) =\u003e console.log(number)); // 6\n\nconsole.log(sumDigitsSync(1231)); // 7\n```\n\n### License\n\n[This project](https://deno.land/x/sum_digits) is licensed under the\n[MIT License](./LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultirequiem%2Fsum-digits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fultirequiem%2Fsum-digits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultirequiem%2Fsum-digits/lists"}