A tld.js wrapper presented as an Angularjs directive
bower install angular-tld
<script src="bower_components/tld-browserified/tld.js"></script>
<script src="bower_components/angular-tld/angular-tld.js"></script>
<script>
var app = angular.module('myApp', ['ngTld']);
app.controller('myCtrl', ['$scope', 'ngTld', function($scope, ngTld) {
//...
}]);
</script>
<form name="myform">
<input name="myTld" check-tld ng-model="myTld" />
<small style="color: red;" ng-if="myForm.myTld.$error.invalidTld">Not a valid TLD :(</small>
</form>
First run the following in terminal
cd example
bower install
Then open example/index.html in your browser