Skip to content

Commit

Permalink
馃槝
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed May 10, 2019
1 parent 42f179e commit d654094
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
14 changes: 7 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ const injectLottie = `
*
* You must pass either `path` or `animationData` to specify the Lottie animation.
*
* `output` may be any of the following:
* - an image to capture the first frame only (png or jpg)
* - an image pattern (eg. sprintf format 'frame-%d.png' or 'frame-%012d.jpg')
* - an mp4 video file (requires FFmpeg to be installed)
* - a GIF file (requires Gifski to be installed)
* `output` must be one of the following:
* - An image to capture the first frame only (png or jpg)
* - An image pattern (eg. sprintf format 'frame-%d.png' or 'frame-%012d.jpg')
* - An mp4 video file (requires FFmpeg to be installed)
* - A GIF file (requires Gifski to be installed)
*
* @name renderLottie
* @function
Expand Down Expand Up @@ -344,7 +344,7 @@ ${inject.body || ''}
await ffmpegP

if (spinnerF) {
spinnerF.success()
spinnerF.succeed()
}
} else if (isGif) {
const spinnerG = !quiet && ora(`Generating GIF with Gifski`).start()
Expand All @@ -367,7 +367,7 @@ ${inject.body || ''}
await execa.shell(cmd)

if (spinnerG) {
spinnerG.success()
spinnerG.succeed()
}
}

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"devDependencies": {
"ava": "^1.4.1",
"ffmpeg-probe": "^1.0.6",
"rmfr": "^2.0.0",
"sharp": "^0.22.1",
"standard": "^12.0.1",
"update-markdown-jsdoc": "^1.0.6"
Expand Down
14 changes: 7 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,18 @@ For `mp4` outputs, the height may be different by a pixel due to the `x264` enco

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### [renderLottie](https://[email protected]/:transitive-bullshit/puppeteer-lottie/blob/56235fed59f7a84656f0e8508275cdfc73396dfb/index.js#L60-L382)
### [renderLottie](https://[email protected]/:transitive-bullshit/puppeteer-lottie/blob/42f179e03af2529164dc0e45dbc0b0417331dd82/index.js#L60-L382)

Renders the given Lottie animation via Puppeteer.

Must pass either `path` or `animationData`.
You must pass either `path` or `animationData` to specify the Lottie animation.

`output` may be any of the following:
`output` must be one of the following:

- an image to capture the first frame only (png or jpg)
- an image pattern (eg. sprintf format 'frame-%d.png' or 'frame-%012d.jpg')
- an mp4 video file (requires FFmpeg to be installed)
- a GIF file (requires Gifski to be installed)
- An image to capture the first frame only (png or jpg)
- An image pattern (eg. sprintf format 'frame-%d.png' or 'frame-%012d.jpg')
- An mp4 video file (requires FFmpeg to be installed)
- A GIF file (requires Gifski to be installed)

Type: `function (opts): Promise`

Expand Down

0 comments on commit d654094

Please sign in to comment.