torrent-extract-hash

1.0.0 • Public • Published

node-torrent-extract-hash

NPM Package Build Status Coverage Status Dependency Status

Installation

npm i torrent-extract-hash

API Reference

extractHash(items) ⇒ Array.<string>

Extract infohash string from torrent object(s).

Kind: Exported function
Params

  • items *

Example

var extractHash = require("torrent-extract-hash");
var file = fs.readFileSync(path.join(__dirname, "checkMyTorrentIp.png.torrent"));
extractHash(parseTorrentFile(file));
//[ 2fa71a2dbb7d53a39373a9c4e2c9d89aaa7a6db1 ]

License

MPL 2.0

Readme

Keywords

Package Sidebar

Install

npm i torrent-extract-hash

Weekly Downloads

0

Version

1.0.0

License

MPL-2.0

Last publish

Collaborators

  • vonthar