3.2.0 • Published 2 years ago
@hoast/source-javascript v3.2.0
Source Javascript
Read and execute scripts from the filesystem.
Install
npm install @hoast/source-javascriptOptions
{String} directory = 'src'Directory path, either absolute or relative to the working directory.{String} executeProperty = 'default'Dot notation of property on imported object to execute.{Array} filterPatterns = nullGlob patterns used to filter the file paths relative to the set directory with.{Object} filterOptionsPattern matching options.{Boolean} all = falseWhether all patterns have to match, or any match is sufficient.{Boolean} extended = falseEnable all advanced features from extglob.{String} flags = ''RegExp flags (e.g. 'i' ) to pass to the RegExp constructor.{Boolean} globstar = falseIf false the pattern 'path/' will match any string beginning with 'path/', for example it will match 'path/file.txt' and 'path/to/file.txt'. If true the same 'path/' will match any string beginning with 'path/' that does not have a '/' to the right of it, for example it will match 'path/file.txt' but not 'path/to/file.txt'. If true the pattern 'path/*' will match any string beginning with 'path/', which is equal to the 'path/' with globstar set to false.{Boolean} strict = falseBe forgiving about multiple slashes, such as /// and make everything after the first / optional. Like how bash glob works.
{Array<String>} watchIgnore = [ '**/node_modules/**' ]Paths of files to ignore marking as dependencies when watching for changes.{Number} logLevel = 2Log level given to the logger.