a tiny utility ☘️ supports downloading file from URL.
yarn add hades-ts
import { hades } from 'hades-ts';
await hades({
url: 'https://raw.githubusercontent.com/103cuong/uid/master/uid.go',
path: 'uid.go',
});
type Options = {
url: string;
path: string;
timeout?: number;
};
hades(options: Options): Promise<unknown>
Thanks goes to these wonderful people (emoji key):
Cuong Tran 💻 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT © Cuong Tran