read-dataurl
v0.1.0
Published
A tiny package to read dataURLs
Downloads
3
Readme
read-dataurl
A tiny package to read dataURLs
Usage
const readDataurl = require('read-dataurl')
const data = readDataurl('data:application/json;base64,e30K')
// => { encoding: 'base64', mime: 'application/json', data: 'e30K' }
const decoded = await readDataurl.decode('data:application/json;base64,e30K')
// => { data: '{}\n', mime: 'application/json' }