Skip to content

Commit f51e567

Browse files
committed
Merge pull request #130 from treshugart/master
#129 - Update documentation to more clearly explain what happens for default base option values.
2 parents c0dfd14 + edb9caa commit f51e567

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ fs.src(['*.js', '!b*.js'])
4242
- Default is `process.cwd()`.
4343

4444
- base - Specify the folder relative to the cwd. This is used to determine the file names when saving in `.dest()`.
45-
- Default is where the glob begins if any.
46-
- Default is `process.cwd()` if there is no glob.
45+
- Default is where the glob begins, if any. For example, `path/to/**/*.js` would resolve to `path/to`.
46+
- If there is no glob (i.e. a file path with no pattern), then the dirname of the path is used. For example, `path/to/some/file.js` would resolve to `path/to/some`.
4747

4848
- buffer - `true` or `false` if you want to buffer the file.
4949
- Default value is `true`.

0 commit comments

Comments
 (0)