Socket
Socket
Sign inDemoInstall

posthtml-uploadcare-gif2video

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    posthtml-uploadcare-gif2video

Convert img with GIF to video.


Version published
Weekly downloads
1
Maintainers
1
Install size
14.6 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 18 Jun 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc