Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xiaq/wcswidth-aas
wcswidth as a service
https://github.com/xiaq/wcswidth-aas
Last synced: 21 days ago
JSON representation
wcswidth as a service
- Host: GitHub
- URL: https://github.com/xiaq/wcswidth-aas
- Owner: xiaq
- Created: 2016-03-17T15:43:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-17T16:15:37.000Z (almost 9 years ago)
- Last Synced: 2024-12-02T08:56:43.734Z (23 days ago)
- Language: Go
- Homepage:
- Size: 85 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wcswidth as a service
Terminals don't know how wide characters really are :disappointed::disappointed::disappointed::
![mac](https://raw.githubusercontent.com/xiaq/wcwidth-aas/master/mac.png)
![linux](https://raw.githubusercontent.com/xiaq/wcwidth-aas/master/linux.png)wcswidth-as-a-service to the rescue :smile::smile::smile:! Simply GET a path to obtain its width:
```sh
> curl http://wcwidth.xiaq.me/Hello
5
> curl http://wcwidth.xiaq.me/こんいちは
10
> curl http://wcwidth.xiaq.me/蛤蛤
4
> curl http://wcwidth.xiaq.me/🌚
2
```What to do next:
- [ ] Replace `wcswidth` implementations in glibc, Cairo, vim, libvte and tmux with a dead-simple HTTP GET
- [ ] ... Profit!