1.3.2 • Published 4 months ago

filehost-meta v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

https://img.shields.io/npm/v/filehost-meta https://img.shields.io/npm/dw/filehost-meta

filehost-meta

Fetch basic file information from a download link.

Usage

const { getSources, getInfo } = require('filehost-meta')

// Get all supported sources
// Returns an array of hostnames
const sources = getSources()

// Get file information from page without proxy
// Returns a File class object { name, size, views, downloads, createdAt, updatedAt }
getInfo(url)
  .then(data => {})
  .catch(console.error)

// Get file information from page with a HTTP proxy (http://<user>:<pass>@<ip>:<port>)
// Returns a File class object { name, size, views, downloads, createdAt, updatedAt }
getInfo(url, { proxy })
  .then(data => {})
  .catch(console.error)

Supported Hosts

  • Dropmefiles
  • Files.fm
  • Filesadmin
  • Google Drive - requires API key in env - GOOGLE_KEY
  • Gofile - requires API key in env - GOFILE_KEY
  • KrakenFiles
  • Mediafire
  • Mega
  • Mixdrop
  • Pixeldrain
  • Terminal.lc
  • Uploadhaven
  • Workupload

RIP 🥀

  • Anonfiles (shut down)
  • Zippyshare (shut down)
  • Nopy (shut down)
  • Racaty (shut down)
  • Transfer.sh (shut down)

TODO

  • Up2sha.re
  • Dropbox
  • Wetransfer
  • Megaup.net

Contributing

Go for it.

1.3.2

4 months ago

1.3.1

4 months ago

1.3.0

4 months ago

1.2.4

9 months ago

1.2.3

9 months ago

1.2.2

9 months ago

1.2.1

9 months ago

1.2.0

2 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago