Function
Static Public Summary | ||
public |
cmdconfig(): * |
|
public |
cmdrun(): * |
|
public |
cmdversion(): * |
|
public |
createConfigFile(fileName: String): Boolean Generates stub configuration file inside configuration folder |
|
public |
Creates stub configuration file with default params |
|
public |
Creates configuration directory inside process.cwd() folder |
|
public |
Runs application from cli interface |
Static Public
public cmdconfig(): * source
import cmdconfig from 'bs-broken-links-checker/src/cli/cmd-config.es6'
Return:
* |
public cmdrun(): * source
import cmdrun from 'bs-broken-links-checker/src/cli/cmd-run.es6'
Return:
* |
public cmdversion(): * source
import cmdversion from 'bs-broken-links-checker/src/cli/cmd-version.es6'
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:
Name | Type | Attribute | Description |
fileName | String | name of file |
public createConfigStub(): Object source
import {createConfigStub} from 'bs-broken-links-checker/src/acts/config.es6'
Creates stub configuration file with default params
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
import {run} from 'bs-broken-links-checker/src/acts/run.es6'
Runs application from cli interface
Params:
Name | Type | Attribute | Description |
options | Object |
|
configuration object |
options.mode | String |
|
mode of checking ("website", "section" or "page") |
options.concurrent | Number |
|
number of concurrent requests |
options.requestRetriesAmount | Number |
|
number of attempts for request if it fails at first |
options.requestTimeout | Number |
|
request timeout (in milliseconds) |
options.checkExternalUrls | Boolean |
|
set |