d8888b  88bd88b d888b8b    ?88'   ?88   d8P  d8P
d8P' `P  88P'  `d8P' ?88    88P    d88  d8P' d8P'
88b     d88     88b  ,88b   88b    ?8b ,88b ,88'
`?888P'd88'     `?88P'`88b  `?8b   `?888P'888P'

cra.tw -- a link shortener for crates.io and rubygems

i refer to npm packages a lot, and i've always found npm.im, a url shortener so that you can type npm.im/mypackage instead of npmjs.com/package/hello, very useful. the same thing goes for crates.io and rubygems.com, which is unwieldy to type, and i can never remember whether it's crates.io/crate or crates.io/crates (it's the latter)

cra.tw is very simple, the following will redirect:

cra.tw/serde ---> crates.io/crates/serde
cra.tw/g/rails ---> rubygems.com/gems/rails

i hope it's useful to some other people as well!!

if you have any suggestions or bug reports, the source repo is on codeberg.

running cra.tw 0.1.0