A native AngularJS implement for bittorrent-peerid.
bower install angular-bittorrent-peerid --save
angular.module('yourApp', ['angularBittorrentPeerid'])
.controller('yourController', function (bittorrentPeeridService) {
var peerId = '...';
var client = bittorrentPeeridService.parseClient(peerId);
var clientName = client.client;
var clientVersion = client.version;
});