Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

posthtml-uploadcare-gif2video

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posthtml-uploadcare-gif2video

Convert img with GIF to video.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

posthtml-uploadcare-gif2video

Convert img with GIF to video.

Plugin for PostHTML.

Before

<img src="https://ucarecdn.com/af0136cc-c60a-49a3-a10f-f9319f0ce7e1/road.video.gif" />

After

<video autoplay loop muted webkit-playsinline playsinline>
  <source src="https://ucarecdn.com/af0136cc-c60a-49a3-a10f-f9319f0ce7e1/gif2video/-/format/webm/road.video.gif" type="video/webm">
  <source src="https://ucarecdn.com/af0136cc-c60a-49a3-a10f-f9319f0ce7e1/gif2video/-/format/mp4/road.video.gif" type="video/mp4">
</video>

Install

npm install posthtml-uploadcare-gif2video --save

Usage

const posthtml = require('posthtml')

posthtml()
  .use(require('posthtml-uploadcare-gif2video'))
  .process(html/*, options */)
  .then(result => console.log(result.html))

Keywords

html

FAQs

Package last updated on 18 Jun 2017

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