![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
bep9-metadata-dl
Advanced tools
This module uses bittorrent-protocol, ut_metadata and torrent-discovery modules of WebTorrent to download the info-dictionary part of a .torrent file using infohash of magnet links only.
npm install bep9-metadata-dl
fetchMetadata(infohash, [opts], [callbackFn])
fetchMetadata.fromPeer(infohash, peerAddress, [opts], [callbackFn])
Optional options are:
{
maxConns: 10, // Maximum connections to peers, (default=5)
fetchTimeout: 30000, // A timer scheduled to keep looking for metadata (default=20000)
socketTimeout: 5000 // Sets the socket to timeout after inactivity (default=5000)
}
const fetchMetadata = require('bep9-metadata-dl');
// infohash of ubuntu-16.04.1-server-amd64.iso
const INFO_HASH = '90289fd34dfc1cf8f316a268add8354c85334458';
fetchMetadata(INFO_HASH, { maxConns: 10, fetchTimeout: 30000, socketTimeout: 5000 },
(err, metadata) => {
if (err) {
console.log(err);
return;
}
console.log(`[Callback] ${metadata.name.toString('utf-8')}`);
});
const fetchMetadata = require('bep9-metadata-dl');
// infohash of ubuntu-16.04.1-server-amd64.iso
const INFO_HASH = '90289fd34dfc1cf8f316a268add8354c85334458';
fetchMetadata(INFO_HASH, { maxConns: 10, fetchTimeout: 30000, socketTimeout: 5000 })
.then(metadata => {
console.log(`[Promise] ${metadata.name.toString('utf-8')}`);
}).catch(err => {
console.log(err);
});
const fetchMetadata = require('bep9-metadata-dl');
// infohash of ubuntu-16.04.1-server-amd64.iso
const INFO_HASH = '90289fd34dfc1cf8f316a268add8354c85334458';
fetchMetadata.fromPeer(INFO_HASH, '88.166.72.111:5', { timeout: 5000 },
(err, metadata) => {
if (err) {
console.log(err);
return;
}
console.log(`[Callback] ${metadata.name.toString('utf-8')}`);
});
const fetchMetadata = require('bep9-metadata-dl');
// infohash of ubuntu-16.04.1-server-amd64.iso
const INFO_HASH = '90289fd34dfc1cf8f316a268add8354c85334458';
fetchMetadata.fromPeer(INFO_HASH, '88.166.72.111:5', { timeout: 5000 })
.then(metadata => {
console.log(`[Promise] ${metadata.name.toString('utf-8')}`);
}).catch(err => {
console.log(err);
});
MIT. Copyright (c) Hong Yan.
FAQs
BEP-9 Metadata Downloader
The npm package bep9-metadata-dl receives a total of 1 weekly downloads. As such, bep9-metadata-dl popularity was classified as not popular.
We found that bep9-metadata-dl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.