Need private packages and team management tools?Check out npm Teams »

a1-util-web

1.0.0 • Public • Published

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

Install

npm i a1-util-web

DownloadsWeekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

11.5 kB

Total Files

9

Last publish

Collaborators

  • avatar