0.0.5 • Published 3 months ago

grab-from v0.0.5

Weekly downloads
-
License
WTFPL
Repository
-
Last release
3 months ago

grab-from

Grab from using https. Or http. And hey, as from 0.0.4 0.0.5 it actually works.

Usage

import grabFrom from 'grabfrom'

// grabbing from a site
const {binary, utf8, stream} = grabFrom('site.com')

// grab some files
const html = await utf8('/index.html')
const pic = await binary('/photo.jpg')
const clip = await stream('/movie.mp4')
// yes we do need to know what type to expect

Default is to use https. If http is needed then include that as the second parameter.

import grabFrom from 'grabfrom'
import http from 'node:http'

// use http
const {binary, utf8, stream} = grabFrom('site.com', http)
0.0.3

3 months ago

0.0.2

3 months ago

0.0.5

3 months ago

0.0.4

3 months ago

0.0.1

7 months ago