mayswind / angular-bittorrent-peerid

A native AngularJS implement for bittorrent-peerid.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

angular-bittorrent-peerid

NPM

A native AngularJS implement for bittorrent-peerid.

Install

Using bower

bower install angular-bittorrent-peerid --save

Usage

angular.module('yourApp', ['angularBittorrentPeerid'])
    .controller('yourController', function (bittorrentPeeridService) {
        var peerId = '...';
        var client = bittorrentPeeridService.parseClient(peerId);
        
        var clientName = client.client;
        var clientVersion = client.version;
    });

License

MIT

About

A native AngularJS implement for bittorrent-peerid.

License:MIT License