1.0.5 • Published 5 years ago
@sunshine_bit/capture v1.0.5
sunshine_bit@capture
截取指定 url 的屏幕信息,可以指定屏幕的宽和高.
安装
npm i @sunshine_bit/capture
参数
options
object
TODO: 其他参数覆盖,参考 (
./devices.js
)
事例
const capture = require('@sunshine_bit/capture');
capture.capture({
encoding: 'base64',
}).then((data)=>{
console.log(data)
});