0.3.2 • Published 1 year ago
@qualweb/counter v0.3.2
Counter module
Counts how many of each role and how many of each tag exists in the webpage.
How to use
This package is intended to be used with @qualweb/core.
Add both packages to your project:
npm i --save @qualweb/core @qualweb/counterIn your own code, pass an instance of the Counter class to QualWeb's evaluate method:
import { Counter } from '@qualweb/counter';
import { QualWeb } from '@qualweb/core';
async function main() {
const qw = new QualWeb();
await qw.start();
const counterInstance = new Counter();
const urlToEvaluate = 'https://www.google.com';
const report = await qw.evaluate({
url: urlToEvaluate,
modules: [counterInstance],
});
await qw.stop();
console.debug(report[urlToEvaluate]);
}License
ISC
0.0.0-develop-20241204125016
1 year ago
0.0.0-develop-20241214205012
1 year ago
0.0.0-develop-20241227113441
1 year ago
0.0.0-develop-20241214210645
1 year ago
0.0.0-develop-20241214190614
1 year ago
0.0.0-develop-20241214194459
1 year ago
0.0.0-develop-20241214205318
1 year ago
0.0.0-develop-20241215110033
1 year ago
0.0.0-develop-20241227085427
1 year ago
0.3.0
1 year ago
0.3.2
1 year ago
0.3.1
1 year ago
0.2.4
1 year ago
0.2.3
2 years ago
0.0.0-develop-20231124153852
2 years ago
0.0.0-develop-20231124154536
2 years ago
0.2.2
2 years ago
0.3.0-alpha
4 years ago
0.2.0
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago