Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

drive-analyzer

Package Overview
Dependencies
Maintainers
0
Versions
1
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.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
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 18 Nov 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc