a1-util-web
v1.0.0
Published
Utils for web resources. Get a web page and save to disk (with minimal dependencies)
Downloads
5
Maintainers
Readme
a1-download
Get a web page and save into a folder
Usage
Typescript is also available
const {download} = require('a1-download')
download('https://google.com')
.catch(err=>console.error(err))
download('https://google.com','./database')
.catch(err=>console.error(err))
API
async function download(url: string, folder?: string, name?: string): Promise<void>
Notes
This is a package to download only the requested file, not related ones (images, etc) or child pages. The dependency graph is also kept small (intentionally).
If you need full web page save or crawling, search for other packages as website-scraper or puppeteer