Provides sample torrent files and content for testing WebTorrent-based applications. Current version 2.0.3, released on npm with a mature and stable API. Includes common torrent fixtures (e.g., 'leaves' torrent with its content) and metadata. No major release cadence; maintained as part of the WebTorrent ecosystem. Key differentiator: standardized, ready-to-use torrent test data with known infohashes and file structures, eliminating the need to generate test fixtures manually.
npm install webtorrent-fixturesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import the fixtures and use them with WebTorrent to start downloading and accessing content.
Use import statements instead of require()
Use .torrent property
Deep-clone if mutation is required.
Replace const fixtures = require('webtorrent-fixtures') with import fixtures from 'webtorrent-fixtures'Use .torrent instead
Run npm install webtorrent-fixtures
No dependency data recorded yet.