fs-jetpack
Advanced tools
Comparing version 4.1.1 to 4.2.0
@@ -24,2 +24,5 @@ "use strict"; | ||
// defaults: | ||
if (opts.matching === undefined) { | ||
opts.matching = "*"; | ||
} | ||
if (opts.files === undefined) { | ||
@@ -26,0 +29,0 @@ opts.files = true; |
{ | ||
"name": "fs-jetpack", | ||
"description": "Better file system API", | ||
"version": "4.1.1", | ||
"version": "4.2.0", | ||
"author": "Jakub Szwacz <jakub@szwacz.com>", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
@@ -347,3 +347,3 @@ # fs-jetpack [![Build Status](https://travis-ci.com/szwacz/fs-jetpack.svg?branch=master)](https://travis-ci.com/szwacz/fs-jetpack) [![Build status](https://ci.appveyor.com/api/projects/status/er206e91fpuuqf58?svg=true)](https://ci.appveyor.com/project/szwacz/fs-jetpack) [![codecov](https://codecov.io/gh/szwacz/fs-jetpack/branch/master/graph/badge.svg)](https://codecov.io/gh/szwacz/fs-jetpack) | ||
- `matching` glob patterns of files you want to find ([all possible globs are described further in this readme](#matching-patterns)). | ||
- `matching` (default `"*"`) glob patterns of files you want to find ([all possible globs are described further in this readme](#matching-patterns)). | ||
- `files` (default `true`) whether or not should search for files. | ||
@@ -360,2 +360,5 @@ - `directories` (default `false`) whether or not should search for directories. | ||
```javascript | ||
// Finds all files inside 'foo' directory and its subdirectories | ||
jetpack.find("foo"); | ||
// Finds all files which has 2015 in the name | ||
@@ -362,0 +365,0 @@ jetpack.find("my-work", { matching: "*2015*" }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129057
3035
679