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.
Readme
Command-line Crawling HTTP Testing tool
ccht is a simple command-line tool to crawl and test your website resources' HTTP status code, like broken link checker.
You can skip installation if you use npx
for one-time invocation.
$ npm i -D ccht
# or
$ yarn add -D ccht
ccht [options] <url>
# to crawl and test "https://example.com"
$ npx ccht 'https://example.com'
# to show help
$ npx ccht --help
ccht will crawl the site starting from the given URL.
To see more options, run npx ccht --help
.
--crawler <name>
Choose crawler. Available crawlers:
node-http
Default. Crawls pages by using Node.js' HTTP module and cheerio.
puppeteer
Crawls pages by using a real browser through Puppeteer.
You need to install puppeteer (npm i -D puppeteer
) or configure your environment (browser DevTool protocol connection, executable.)
--reporter <name>
Specify reporter, which formats and outputs the test result.
code-frame
Default. Outputs human-friendly visuallized result.
json
Prints JSON string. Useful for a programmatic access to results.
$ npx ccht 'https://example.com' --reporter=json | jq
--include <urls>
A comma separated list of a URL to include in a result. Any URLs forward-matching will be crawled and be reported.
Defaults to the given URL.
For example, given npx ccht 'https://example.com'
then --include
will be https://example.com
.
--exclude <urls>
A comma separated list of a URL to exclude from a result. Any URLs forward-matching will be skipped nor be removed from a result.
--expected-status <HTTP status codes>
A comma separated list of an expected HTTP status code for pages.
Any pages responded with other status codes result in error (unexpected_status
).
Defaults to 200
.
--exit-error-severity <list of severity>
Change which severities occurs exit status 1
.
Available severities are below:
danger
warning
info
debug
Defaults to danger
.
--timeout <ms>
Timeout for each page to load/response in crawling phase.
This option value is directly goes to node-fetch
's or puppeteer
's one.
Defaults to 3000
(3s).
--concurrency <uint>
How many connection can exist at the same time, a size for connection pool.
Defaults to 1
.
FAQs
A simple command0line tool to crawl and test your website
The npm package ccht receives a total of 3 weekly downloads. As such, ccht popularity was classified as not popular.
We found that ccht 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.