is-torrent 
Detects if a given file path/buffer is a torrent file.
Install
$ npm install --save is-torrentUsage
var isTorrent = require('is-torrent');
isTorrent('my.torrent'); // true/falseLicense
MIT © Hemanth.HM
Detects if a given file path/buffer is a torrent file.
Detects if a given file path/buffer is a torrent file.
$ npm install --save is-torrentvar isTorrent = require('is-torrent');
isTorrent('my.torrent'); // true/falseMIT © Hemanth.HM