
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
convert-base64-to-image
Advanced tools
This is a node package that helps you to convert base64 string created by javascript file reader to image downloadable file
Check out the demo which uses an Express server Demo
Using npm:
$ npm i convert-base64-to-image
Using yarn:
$ yarn add convert-base64-to-image
General usage:
import { converBase64ToImage } from 'convert-base64-to-image'
const base64 = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD//'
const pathToSaveImage = './public/image.png'
const path = converBase64ToImage(base64, pathToSaveImage) //returns path /public/image.png
It allows you to upload files using the base64 string created by FileReader into your server.
FAQs
This is a node package that helps you to convert base64 string created by javascript file reader to image downloadable file
The npm package convert-base64-to-image receives a total of 322 weekly downloads. As such, convert-base64-to-image popularity was classified as not popular.
We found that convert-base64-to-image 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.