
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
quill-image-uploader
Advanced tools
A module for Quill rich text editor to allow images to be uploaded to a server instead of being base64 encoded
A module for Quill rich text editor to allow images to be uploaded to a server instead of being base64 encoded
Install with npm:
npm install quill-image-uploader --save
Include the CSS for the loading effect or create your own.
const quill = new Quill(editor, {
// ...
modules: {
// ...
imageUploader: {
upload: file => {
// return a Promise that resolves in a link to the uploaded image
return new Promise((resolve, reject) => {
const fd = new FormData();
fd.append("upload_file", file);
const xhr = new XMLHttpRequest();
xhr.open("POST", `${window.location.pathname}/api/files/add`, true);
xhr.onload = () => {
if (xhr.status === 200) {
const response = JSON.parse(xhr.responseText);
resolve(response.file_path); // Must resolve as a link to the image
}
};
xhr.send(fd);
});
}
}
}
});
FAQs
A module for Quill rich text editor to allow images to be uploaded to a server instead of being base64 encoded
The npm package quill-image-uploader receives a total of 17,884 weekly downloads. As such, quill-image-uploader popularity was classified as popular.
We found that quill-image-uploader 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.