View hosted source code of packages.
https://openit.io/<alias>/<package-name>
Aliases: /npm, /js, /javascript, undefined
- Normal package: https://openit.io/js/preact
- Scoped package: https://openit.io/js/@phenomic/core
- Anything above without the alias is valid for npm: https://openit.io/preact
Aliases: /php, /packagist, /composer
Aliases: /cargo, /crate, /crates, /rust
- https://openit.io/rust/libc
- https://openit.io/cargo/libc
- https://openit.io/crates/libc
- https://openit.io/crate/libc
Add these function to your .bashrc/.profile:
function openit() {
open "http://openit.io/$1"
}
Then call it like this:
$ openit js/preact
function clone() {
git clone $(curl -Ls -o /dev/null -w %{url_effective} https://openit.io/$1)
}
Then call it like this:
$ clone js/preact