is-torrent 
Detects if a given file path/buffer is a torrent file.
Install
$ npm install --save is-torrent
Usage
var isTorrent = require('is-torrent');
isTorrent('my.torrent'); // true/false
License
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-torrent
var isTorrent = require('is-torrent');
isTorrent('my.torrent'); // true/false
MIT © Hemanth.HM