Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gummibeer/node-weblyse
Analyse your website(s) with multiple tools.
https://github.com/gummibeer/node-weblyse
a11y accessibility analyse best-practices monitor performance seo
Last synced: 2 months ago
JSON representation
Analyse your website(s) with multiple tools.
- Host: GitHub
- URL: https://github.com/gummibeer/node-weblyse
- Owner: Gummibeer
- License: mit
- Created: 2019-11-26T16:07:31.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-17T00:38:23.000Z (11 months ago)
- Last Synced: 2024-10-11T08:33:11.133Z (2 months ago)
- Topics: a11y, accessibility, analyse, best-practices, monitor, performance, seo
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/node-weblyse
- Size: 1.46 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node.js Weblyse
A node.js library to analyse any website with multiple tools and get a report JSON.
## Install
```bash
# npm
npm install node-weblyse# yarn
yarn add node-weblyse
```## Usage
```js
const weblyse = require('node-weblyse');// the report file path is resolved using process.cwd()
// to enforce that it's relative to this file you can do
process.chdir(__dirname);weblyse({
urls: [
// add as much URLs as you want
// the report will contain all of them
'https://github.com',
],
// if you don't need a file just omit the reportFilePath key
reportFilePath: './report.json',
// you con configure the single providers
// enable/disable them via a simple boolean
// or use an object for configuration values
providers: {
ssllabs: true,
securityheaders: true,
webhint: true,
screenshots: true,
lighthouse: true,
axe: true,
},
})
.then(data => {
// do whatever you want with the data Object
// * assertions in your CI
// * render a template
// * post to monitoring service
// ...
})
.finally(() => {
// that's needed to end your node process
process.exit(0);
});
```You can find an [example report.json](https://github.com/Gummibeer/node-weblyse/blob/master/example/report.json) in the GitHub repository.