New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

vminify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vminify

A compressed video tool for Node

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Node端视频压缩工具

调用ffmpeg命令,解放双手~~

Getting Started

npm i vminfy --save-dev

要保证系统已安装ffmpeg

安装ffmpeg

  • 安装 homebrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  • 终端执行 brew install ffmpeg

  • 安装成功后执行 ffmpeg -h 查看帮助文档并验证是否ffmpeg安装成功。

Basic Usage


const tinify = require('vminfy');

vminfy({
    src: '',  // 源文件 (目前采取替换方式)
    quality: '500k', //一般500k左右即可,人眼看不到明显的闪烁,这个是与视频大小最直接相关的;
    width: '', //可定义视频的宽 such: 400
    height: '', //可定义视频的宽 such: 225
    command: '', //自定义ffmpeg命令  非必要不填
});

FAQs

Package last updated on 22 Aug 2018

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