All instance methods are also exposed static methods which construct a new object and
run the method. For example:
const assert = require('assert');const NYCConfig = require('@cfware/nyc');const config1 = NYCConfig.all();const config2 = new NYCConfig().all();(async () { // This will pass assert.deepStrictEqual(await config1, await config2);})();
All methods return this to allow chaining.
new NYCConfig(customSettings = {})
Construct a new instance overwriting some nyc configuration options. No validation is
performed. It is not needed to explicitly call the constructor unless:
You need to eliminate some default exclude globs.
You need to provide options not directly supported by this module.
NYCConfig.defaultExclude
This property is static only, returns a copy of the default exclude list.