Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ba64

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ba64

A small npm module for saving base 64 encoded images to your file system.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
320
increased by42.22%
Maintainers
1
Weekly downloads
 
Created
Source

ba64

A small npm module for saving base 64 encoded images to your file system.

Installation

npm i ba64 -S
var fs = require("fs"); // You need the fs module if you want to save your images.
var ba64 = require("ba64");

Usage

# ba64.getExt(base64_image_string)

Returns the file extension of the base 64 encoded image.

# ba64.save(base64_image_string, path/to/file_name)

Saves the base 64 encoded image to the file system. file_name should not include the file extension; ba64 will do that for you.

Keywords

FAQs

Package last updated on 14 Oct 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc