Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

render-gif

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

render-gif

Render a gif and provide frames to draw.

  • 2.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

render-gif Travis CI Build Status

Render a gif and provide frames to draw.

NPM Badge

Install

npm install render-gif

Usage

const fs = require("fs");
const logUpdate = require("log-update");
const renderGif = require("render-gif");
 
renderGif(fs.readFileSync("unicorn.gif"), logUpdate);

API

renderGif(data, callback, options?)

data

Type: array-like

The gif data. Can be anything array-like such as a Buffer, Array or Uint8Array.

callback

Type: (data: ArrayLike) => void

The callback to provide each rendered frame to.

options

Type: object

maximumFrameRate

Type: number
Default: Infinity

The maximum framerate to render the gif at.

Return value
isPlaying

Type: boolean
Default: true

Whether the animation should be rendered and provided to the callback.

Keywords

FAQs

Package last updated on 17 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc