node-torrent:节点的种子读取器,写入器和哈希检查器

节点洪流使用node.js读取,制作和哈希检查种子!用法阅读种子const nt = require ( 'nt' ) ; nt . read ( 'path/to/file.torrent' , ( err , torrent ) => { if ( err ) throw err ; console . log ( 'Info hash:' , torrent . infoHash ( ) ) ; } ) ;制作种子let rs = nt . make ( 'http://myannounce.net/url' , __dirname + '/files' ) ; rs . pipe ( fs . createWriteStream ( 'mytorrent.torrent' ) ) ; // callback style nt . makeWrite ( 'out
zip 文件大小:141.88KB