whynopadlock
v1.0.6
Published
Checks for http connections on an https site
Downloads
19
Maintainers
Readme
HTTPS Crawler from WhyNoPadlock
Setup
npm i whynopadlock --save
Project setup
You will need to create a new file for your project example.js
and then from in there you will need to add a basic setup structure to take in pages to test as an array, look at the Usage instructions below.
Usage whynopadlock
import { whynopadlock } from 'whynopadlock';
var pages = [
'https://www.example.com/'
];
whynopadlock( pages );
insecurity
import { insecurity } from 'whynopadlock';
var pages = [
'https://www.example.com/'
];
insecurity({
pages,
cb: () => {},
whitelist: [
/w3\.com/
],
timeout: 2000,
showErrorsOnly: false,
showRobotsErrors: true
});
showRobotsErrors - This will display an error when a robots or googleBot meta tag is displayed
showErrorsOnly - This will just display when an error is found (No green ok message)
You can now run either of these in the console with node example.js
Thanks