Skip to content

Commit

Permalink
Add strip option (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
DKurilo authored and sindresorhus committed Jul 19, 2018
1 parent 5c3b75c commit 6b65fa9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Expand Up @@ -47,6 +47,10 @@ module.exports = opts => input => {
args.push('--verbose');
}

if (opts.strip) {
args.push('--strip');
}

const cp = execa(pngquant, args, {
encoding: null,
input
Expand Down
7 changes: 7 additions & 0 deletions readme.md
Expand Up @@ -76,6 +76,13 @@ Default: `false`

Print verbose status messages.

##### strip

Type: `boolean`<br>
Default: `false` (`true` on macOS)

Remove optional metadata.

#### input

Type: `Buffer` `Stream`
Expand Down

0 comments on commit 6b65fa9

Please sign in to comment.