šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

drive-analyzer

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drive-analyzer

Static analysis of a Hyperdrive bundle

1.1.1
latest
Source
npm
Version published
Weekly downloads
180
59.29%
Maintainers
0
Weekly downloads
Ā 
Created
Source

Drive Analyzer

Static analysis of a Hyperdrive. Performs static analysis on a Hyperdrive to generate a delta-encoded warm-up map for a specified entrypoint and preloads.

npm i drive-analyzer

Usage

const analyzer = new DriveAnalyzer(drive)
analyzer.ready()
const encoded = await analyzer.analyze(['app.js']) // delta encoded warm-up map
const decoded = DriveAnalyzer.decode(deflated)// delta decoded warm-up map

API

analyzer.analyze(entrypoint, [assets])

Generates a delta-encoded warm-up map for the specified entrypoint.

  • entrypoints (Array) (string): The starting points for the dependency-stream analysis.
  • assets (Array) (optional): Additional assets to include in the warm-up map. If a folder is specified, all files and subfolders within that folder will be included.

DriveAnalyzer.decode(map)

Decodes a delta-encoded warm-up map.

  • map (object): A delta-encoded warm-up map generated.

License

Apache-2.0

FAQs

Package last updated on 03 Dec 2024

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