Skip to content

Commit

Permalink
readme tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 25, 2014
1 parent a4f7676 commit b43c7ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ $ npm install --save del
```js
var del = require('del');

del(['tmp/*.js', '!tmp/unicorn.js'], function (err, deletedFiles) {
console.log('Files deleted:', deletedFiles.join(', '));
del(['tmp/*.js', '!tmp/unicorn.js'], function (err, paths) {
console.log('Deleted files/folders:\n', paths.join('\n'));
});
```

Expand All @@ -29,7 +29,7 @@ del(['tmp/*.js', '!tmp/unicorn.js'], function (err, deletedFiles) {
### del(patterns, [options], callback)
### del.sync(patterns, [options])

The async method gets an array of deleted files as the second argument in the callback, while the sync method returns the array.
The async method gets an array of deleted paths as the second argument in the callback, while the sync method returns the array.

#### patterns

Expand Down

0 comments on commit b43c7ab

Please sign in to comment.