Socket
Book a DemoInstallSign in
Socket

urls-to-base64

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

urls-to-base64

This package converts file dowloadable from URL to base64 directly

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

url-to-base64

This is a very simple package with functionality of converting the file dowloaded from url to base64. This abstracts the complexity of actually parsing the reponse in chunks before converting them in to one base64 encoded string.

Usage

First, install the package using npm:

npm install url-to-base64 --save

Then, require the package and use it like so:

const urlToBase64 = require('url-to-base64');
urlToBase64.convertOnlineHostedFileToBase64("<some-url>", <file-type>)
<file-type> this is available in urlToBase64.types

License

Apache 2.0

Note: This is under development and will change/evolve alot internally and externally not suitable to be used in your workflow yet.

Keywords

Base64

FAQs

Package last updated on 22 Jan 2019

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.