Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
check-http-status
Advanced tools
Changelog
1.3.0 - Oct 15, 2021
Readme
Easily check status codes, response headers, and redirect chains in Node.js
similar as done from the httpstatus website.
When the site is on VPN so this is where it plays an important role. You can simply connect your system/machine with VPN and run this package locally so it can check the status of your VPN connected URL(s).
It can also check the website that are secured with HTTP Authentication.
Via npm
npm install check-http-status --save-dev
Via Yarn
yarn add check-http-status --dev
const checkHttpStatus = require('check-http-status');
checkHttpStatus({
'sitemaps': [
'https://www.trunkcode.com/page-sitemap.xml',
'https://www.trunkcode.com/post-sitemap.xml'
],
'skip200': true, // Do not report the URLs having HTTP code 200.
'export': {
'format': 'xlsx',
'location': '/Users/trunkcode/Desktop/',
},
'options': {
'auth': {
'password': 'Testing1234',
'username': 'trunkcode'
},
'headers': {
'Accept': 'text/html',
}
}
});
const checkHttpStatus = require('check-http-status');
checkHttpStatus({
'urls': [
'http://trunkcode.com/',
'https://example.com/',
'https://example1234.com/',
'https://www.trunkcode.com/',
'https://www.trunkcode.com/test/'
],
'skip200': true, // Do not report the URLs having HTTP code 200.
'export': {
'format': 'xlsx',
'location': '/Users/trunkcode/Desktop/',
},
'options': {
'auth': {
'password': 'Testing1234',
'username': 'trunkcode'
},
'headers': {
'Accept': 'text/html',
}
}
});
const checkHttpStatus = require('check-http-status');
checkHttpStatus({
'sitemaps': [
'https://www.trunkcode.com/page-sitemap.xml',
'https://www.trunkcode.com/post-sitemap.xml'
],
'urls': [
'http://trunkcode.com/',
'https://example.com/',
'https://example1234.com/',
'https://www.trunkcode.com/',
'https://www.trunkcode.com/test/'
],
'skip200': true, // Do not report the URLs having HTTP code 200.
'export': {
'format': 'xlsx',
'location': '/Users/trunkcode/Desktop/',
},
'options': {
'auth': {
'password': 'Testing1234',
'username': 'trunkcode'
},
'headers': {
'Accept': 'text/html',
}
}
});
Attributes | Type | Required | Default | Description |
---|---|---|---|---|
sitemaps | Array | Yes | Sitemap(s) URL(s) where the Actual site URL(s) needs to be fetched for checking the HTTP Status. | |
urls | Array | Yes | URL(s) for which HTTP Status needs to be checked. | |
skip200 | Boolean | No | false | Whether to list the HTTP status 200 URL(s) or not. |
export | Object | No | {} | Whether to export the status report or not. By default it logs the report on the screen. |
options | Object | No | {} | Define options like HTTP Auth credentials if the site is locked or headers etc. |
NOTE: sitemaps
or urls
is required. You can define both parameters as
well to fetch URL(s) from sitemap and the URL(s) that are not listed in the
ssitemap, you can provide them separately.
FAQs
Check HTTP Status and create a list for all the HTTP status code.
The npm package check-http-status receives a total of 29 weekly downloads. As such, check-http-status popularity was classified as not popular.
We found that check-http-status demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.