Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
canvas-screenshots
Advanced tools
canvas-screenshots is a useful screenshots tools on your website created by canvas.The behavior is similar with your PC clients like wechat or QQ.
canvas-screenshots is a useful screenshots tools on your website created by canvas.The behavior is similar with your PC clients like wechat or QQ.
npm install --save-dev canvas-screenshots
import ScreenShoots from 'canvas-screenshots';
// generate a screenshots
const screen = new ScreenShoots({
download: data => {
console.log(data);
},
});
// create mask above
screen.start();
plugins
The switch to each function.
type: Array<pluginType>
pluginType: 'rectangular' || 'circle' || 'arrow' || 'pen' || 'text' || 'mosaic' || 'image' || 'back'
default: Array<all pluginType>
required: false
download
Trigger when click the download button, the type of output data will be decided by config type.
type: Function
default: noop function
required: true
arguments: data
imageFail
Trigger when choose a image but not match the expected.
type: Function
default: noop function
required: false
arguments: error
outputType
The output type with download.
type: string('imageData' || 'png' || 'file')
default: 'imageData'
required: false
The browsers supported is now minimal because of the different behavior of canvas, and it will soon be more.
FAQs
canvas-screenshots is a useful screenshots tools on your website created by canvas.The behavior is similar with your PC clients like wechat or QQ.
The npm package canvas-screenshots receives a total of 0 weekly downloads. As such, canvas-screenshots popularity was classified as not popular.
We found that canvas-screenshots demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.