Is HONcode Certified NPM module
$ npm install -g is-honcode-certified
$ is-honcode-certified --help
Usage: is-honcode-certified <url> [-?, --help]
Options:
--url, -u url to check [required]
-?, --help Show help [boolean]
var hon = require('is-honcode-certified');
hon.isHONcodeCertified('https://www.hon.ch/').then(function(isCertified) {
if (isCertified) {
console.log('\n🦄 It\'s safe\n');
} else {
console.log('\n👻 Be careful\n');
}
});
Type: function
Return a Promise with true if the website is certified.
Contributions are always welcome, no matter how large or small.
See Contributing.
Apache License 2.0