New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

assets-vault

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assets-vault

Download all assets from any webpage including images, styles, scripts, and more

latest
npmnpm
Version
1.0.10
Version published
Maintainers
1
Created
Source

Website Asset Downloader

A powerful Node.js package to download all assets from any webpage, including images, styles, scripts, fonts, and more.

Installation

npm install assets-vault

Usage

import { WebsiteAssetDownloader } from 'assets-vault';

// Basic usage
const downloader = new WebsiteAssetDownloader('https://example.com', {
  outputFolder: 'my-downloads'
});
await downloader.downloadAll();

// Advanced usage with options
const downloader = new WebsiteAssetDownloader('https://example.com', {
  outputFolder: 'my-downloads',
  maxPages: 50,
  delay: 2000,
  includeSubdomains: true,
  customCategories: {
    pdfs: /\.pdf(\?.*)?$/i,
    images2x: /@2x\.(jpg|png)(\?.*)?$/i
  }
});

const stats = await downloader.downloadAll();
console.log('Statistics:', stats);

Options

  • outputFolder (required): Directory where assets will be saved
  • maxPages (optional): Maximum number of pages to crawl (default: 50)
  • delay (optional): Delay between requests in milliseconds (default: 1000)
  • includeSubdomains (optional): Whether to include subdomains (default: false)
  • customCategories (optional): Custom asset categories with regex patterns

License

MIT

Keywords

assets

FAQs

Package last updated on 01 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts