{"id":20086816,"url":"https://github.com/spectreconsole/wcwidth","last_synced_at":"2025-04-07T15:07:58.965Z","repository":{"id":46958427,"uuid":"296026048","full_name":"spectreconsole/wcwidth","owner":"spectreconsole","description":"A .NET library that calculates the width of Unicode characters.","archived":false,"fork":false,"pushed_at":"2023-11-14T23:03:16.000Z","size":111,"stargazers_count":53,"open_issues_count":1,"forks_count":14,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-31T12:08:29.808Z","etag":null,"topics":["dotnet","unicode","unicode-characters","wcwidth"],"latest_commit_sha":null,"homepage":"","language":"C#","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/spectreconsole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"LICENSE.md","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},"funding":{"github":"patriksvensson"}},"created_at":"2020-09-16T12:29:39.000Z","updated_at":"2025-03-12T09:25:17.000Z","dependencies_parsed_at":"2025-01-16T13:34:38.875Z","dependency_job_id":"4d7f099d-22f3-46da-8f09-f37d19d29a75","html_url":"https://github.com/spectreconsole/wcwidth","commit_stats":{"total_commits":25,"total_committers":3,"mean_commits":8.333333333333334,"dds":0.07999999999999996,"last_synced_commit":"0b2780755ebd2273a3089403e892d5d3e404793f"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spectreconsole%2Fwcwidth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spectreconsole%2Fwcwidth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spectreconsole%2Fwcwidth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spectreconsole%2Fwcwidth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spectreconsole","download_url":"https://codeload.github.com/spectreconsole/wcwidth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675597,"owners_count":20977376,"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":["dotnet","unicode","unicode-characters","wcwidth"],"created_at":"2024-11-13T16:02:27.842Z","updated_at":"2025-04-07T15:07:58.929Z","avatar_url":"https://github.com/spectreconsole.png","language":"C#","funding_links":["https://github.com/sponsors/patriksvensson"],"categories":[],"sub_categories":[],"readme":"# Wcwidth\n\n_[![Wcwidth NuGet Version](https://img.shields.io/nuget/v/Wcwidth.svg?style=flat\u0026label=NuGet%3A%20Wcwidth)](https://www.nuget.org/packages/Wcwidth)_\n\nThis is a port of the [Python port](https://github.com/jquast/wcwidth) \nwritten by Jeff Quast, which originally was written by Markus Kuhn.\n\n* Python port: https://github.com/jquast/wcwidth (MIT)\n* Original: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c\n\n## Usage\n\n```csharp\nusing Wcwidth;\n\n// Get the width\nvar width = UnicodeCalculator.GetWidth('コ');\n\n// It should be 2 cells wide\nDebug.Assert(width == 2);\n```\n\n## Building\n\nWe're using [Cake](https://github.com/cake-build/cake) as a \n[dotnet tool](https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools) \nfor building. So make sure that you've restored Cake by running \nthe following in the repository root:\n\n```\n\u003e dotnet tool restore\n```\n\nAfter that, running the build is as easy as writing:\n\n```\n\u003e dotnet cake\n```\n\n## Acknowledgement\n\nThis code is a port of https://github.com/jquast/wcwidth,\nlicensed under [MIT](https://github.com/jquast/wcwidth/blob/dc720a9a4c3c6ae6c5b16a552cfe5186dde22551/LICENSE).\n\nThis code was originally derived directly from C code of the same name, \nwhose latest version is available at http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c:\n\n```\n* Markus Kuhn -- 2007-05-26 (Unicode 5.0)\n* Permission to use, copy, modify, and distribute this software\n* for any purpose and without fee is hereby granted. The author\n* disclaims all warranties with regard to this software.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspectreconsole%2Fwcwidth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspectreconsole%2Fwcwidth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspectreconsole%2Fwcwidth/lists"}