Home Identifier Source Test Repository

Function

Static Public Summary
public

cmdconfig(): *

public

cmdrun(): *

public

cmdversion(): *

public

Generates stub configuration file inside configuration folder

public

Creates stub configuration file with default params

public

Creates configuration directory inside process.cwd() folder

public

run(options: Object)

Runs application from cli interface

Static Public

public cmdconfig(): * source

Return:

*

public cmdrun(): * source

Return:

*

public cmdversion(): * source

Return:

*

public createConfigFile(fileName: String): Boolean source

import {createConfigFile} from 'bs-broken-links-checker/src/acts/config.es6'

Generates stub configuration file inside configuration folder

Params:

NameTypeAttributeDescription
fileName String

name of file

Return:

Boolean

returns true if success, false otherwise

public createConfigStub(): Object source

import {createConfigStub} from 'bs-broken-links-checker/src/acts/config.es6'

Creates stub configuration file with default params

Return:

Object

stub config object

public createConfigsDir() source

import {createConfigsDir} from 'bs-broken-links-checker/src/acts/config.es6'

Creates configuration directory inside process.cwd() folder

public run(options: Object) source

Runs application from cli interface

Params:

NameTypeAttributeDescription
options Object
  • optional

configuration object

options.mode String
  • optional

mode of checking ("website", "section" or "page")

options.concurrent Number
  • optional

number of concurrent requests

options.requestRetriesAmount Number
  • optional

number of attempts for request if it fails at first

options.requestTimeout Number
  • optional

request timeout (in milliseconds)

options.checkExternalUrls Boolean
  • optional

set true for check outer links