ReadmeAppraisal

ReadmeAppraisal

An API proxy/wrapper that invokes the readme-score-api in order to assess and grade the quality of a README file.

Constructor

new ReadmeAppraisal(serviceEndpointUrlopt)

Source:
Parameters:
Name Type Attributes Default Description
serviceEndpointUrl string <optional>
http://readme-score-api.herokuapp.com/score.json?url=&human_breakdown=false&force=false

The URL of the readme-score-api service you want to consume.

Methods

for(url, apiEndpointopt) → {Promise.<AppraisalData>}

Evalutate the root-level README in a repository (if present).

Source:
Parameters:
Name Type Attributes Default Description
url string

A URL or repository slug.

apiEndpoint URL <optional>
http://readme-score-api.herokuapp.com/score.json?url=

The API endpoint.

Returns:
Type:
Promise.<AppraisalData>

AppraisalData for a README.

Example
const ReadmeAppraisal = require('./readme-appraisal')

// Parameters: url|slug|string<html>
const readmeAppraisal = new ReadmeAppraisal()
const result = await readmeAppraisal.for('commonality/readme-inspector')