8.0.2 • Published 8 months ago

coach-core v8.0.2

Weekly downloads
1,570
License
MIT
Repository
github
Last release
8 months ago

The Coach - core

Unit tests

Documentation | Changelog

The coach

The coach helps you find performance, best practice and privacy problems on your web page. coach-core holds the JavaScript functionality to analyse your page, the Coach project is the CLI.

const coach = require('coach-core');
  
// Get the JavaScript code that will analyse a page
const domAdviceJavaScript = await coach.getDomAdvice();
// Take the *domAdviceJavaScript* and run it in your browser and take care of the result.
const domResult = ...

const har = // we get the HAR from a browser

// If your HARhar contains multiple pages (multiple runs etc) you can use the API
// to get the page that you want
const firstPageHar = coach.pickAPage(har, 0);

const harResult = await coach.analyseHar(firstPageHar);

// Say that you got the result from the browser in domAdviceResult
// and the HAR result in harAdviceResult
const coachResult = coach.merge(domResult, harResult);
7.2.2

8 months ago

8.0.1

8 months ago

8.0.0

8 months ago

8.0.2

8 months ago

7.2.1

10 months ago

7.2.0

11 months ago

7.1.3

1 year ago

7.1.2

2 years ago

7.1.1

2 years ago

7.0.0

2 years ago

7.1.0

2 years ago

7.0.0-beta.2

2 years ago

7.0.0-beta.1

2 years ago

6.4.3

3 years ago

6.4.2

3 years ago

6.4.1

3 years ago

6.4.0

3 years ago

6.3.3

3 years ago

6.3.2

3 years ago

6.3.0

3 years ago

6.3.1

3 years ago

6.2.0

3 years ago

6.1.0

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

6.0.0-beta.7

3 years ago

6.0.0-beta.6

3 years ago

6.0.0-beta.5

3 years ago

6.0.0-beta.4

3 years ago

6.0.0-beta.3

3 years ago

6.0.0-beta.2

3 years ago

6.0.0-beta.1

3 years ago

6.0.0-alpha.3

3 years ago

6.0.0-alpha.2

3 years ago

6.0.0-alpha.1

3 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.0.2

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

0.0.2

4 years ago