简体中文 | English(./README-en_US.md)
$ npm i @fe-go/fe-cli -g
Based on HTTP Live Streaming, split the video into mutiple parts through ffmpeg, in order to the purpose of opening the video in seconds.
Prerequisites ffmpeg needs to be installed on this machine and recommend to install by homebrew
- install
homebrew:$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - install
ffmpeg:$ brew install ffmpeg
fe hls <file.mp4> <outdir>
file.mp4mp4file read to cutoutdiroutput directory
exmaple:
fe hls test.mp4 ./
$ fe diff <file1> <file2>
If computer is installed vscode and command code has been added into environment variable, option--code can be used to show diff in vscode.
fe diff file1 file2 --code
example:
// example1.js
function example(firstName, lastName) {
console.log(firstName + " " + lastName)
}
// example2.js
function example(firstName, lastName) {
console.log('He/She is: ')
console.log(firstName + "/" + lastName)
}
$ fe diff example1.js example2.js
结果
function example(firstName, lastName) {
- console.log(firstName + " " + lastName)
+ console.log('He/She is: ')
console.log(firstName + "/" + lastName)
}
fe IP
fe qr <URL> -S/--small
<URL>converted URL-S/--smalloptional to get small size qrcode
example:
fe qr www.github.com get default size
fe qr www.github.com -small / fe qr www.github.com -S get small size qrcode