This is a modified/simplified version of silverbucket/webfinger.js, a webfinger client that runs both in the browser and in node.js.
-
defaults to TLS only
-
optional URI fallback (for older services which use host-meta or host-meta.json URI endpoints)
In node.js you should first require the module:
var webfinger = require('webfinger.js');
When you include the src/webfinger.js
script, a webfinger
object will be exposed.
webfinger('nick@silverbucket.net', {
tls_only: true, // defaults to true
uri_fallback: false, // defaults to false
debug: false // defaults to false
}, function (err, p) {
if (!err) {
console.log(p);
}
});