Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

offliner

A NodeJS, Bun, Deno way to fetch all remote dependencies locally so that you can use the same WebSite via any local HTTP server that is able to serve such content.

Usage

node src/index.js [options] URL

Fetches all the assets required by that specific URL as entry point and store these into the destination folder.

Options

  • --verbose or -v to read the process while it happens: default: false
  • --dest or -d to decide where to put all fetched content that can be used offline: default: ./offline

Example

It stores this page locally into the ./offline folder with all assets stored by hierarchi and namespaces retrieved from CDNs and remote entries.

# optionally disable stric TSL when trusted/needed
NODE_TLS_REJECT_UNAUTHORIZED=0 node src/index.js --verbose https://example.com/

Releases

Packages

Contributors

Languages