あいつの日誌β

働きながら旅しています。

2020-09-30から1日間の記事一覧

How to get the real URL behind a shortened URL using cURL and axios

こういうのを Node.js でやりたい時は $ curl -sLI http://shortened_url | grep -i Location axios の get に以下のようなオプションを渡してあげるとよい const axios = require('axios') async function main () { const res = await axios.get('https://…