How to use the node-w3capi.user function in node-w3capi

To help you get started, we’ve selected a few node-w3capi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github w3c / validate-repos / list-unconnected-contributors.js View on Github external
return new Promise(function(res, rej) {
      w3c.user({type: 'github', id: contributor.id}).fetch(function(err, /* w3cuser */) {
        if (err) {
          if (err.status === 404) {
            // is the user known in ahsnazg local db?
            if (ashnazgusers.indexOf(contributor.id) !== -1) {
              return res(null);
            } else {
              return res({login: contributor.login, contributions: contributor.contributions});
            }
          } else {
            return rej(err);
          }
        }
        return res(null);
      });
    });
  })).then(results => {

node-w3capi

A JavaScript client for the W3C API

MIT
Latest version published 1 year ago

Package Health Score

59 / 100
Full package analysis

Popular node-w3capi functions