mirror of
https://github.com/github/codeql.git
synced 2026-04-17 21:14:02 +02:00
9 lines
255 B
JavaScript
9 lines
255 B
JavaScript
const parseTorrent = require('parse-torrent'),
|
|
fs = require('fs');
|
|
|
|
function getTorrentData(dir, torrent){
|
|
let name = parseTorrent(torrent).name, // $ Source
|
|
loc = dir + "/" + name + ".torrent.data";
|
|
return fs.readFileSync(loc); // $ Alert
|
|
}
|