1.0.0
A simple module to fetch Base64 data of any image/gif, remote or local.
Attributes
Popular
Repository
Current version released
4 years ago
Dependencies
std
Versions
fetch-base64
A simple module to fetch Base64 data of any image/gif, remote or local, for Deno.
Inspired from fetch-base64 for Node.js. I needed it in Deno, so I made a new small module.
Usage
fetchRemote(url: string, onlyData?: boolean)
: to fetch base64 data from a remote server- Params
url
- URL of the resource
- Type: string
onlyData
:- Whether to fetch only data or complete URI
- Type: boolean?
- Params
fetchLocal(url: string, onlyData?: boolean)
: to fetch base64 data from a local file- Params
url
- Path of the resource
- Type: string
onlyData
:- Whether to fetch only data or complete URI
- Type: boolean?
- Params
fetchAuto(url: string, onlyData?: boolean)
: to fetch base64 data from a remote server / locally, identifies automatically.- Params
url
- URL/Path of the resource
- Type: string
onlyData
:- Whether to fetch only data or complete URI
- Type: boolean?
- Params
License
See LICENSE for more info. Copyright 2020 @ DjDeveloper