base64mime

Extract the mime type from a base64 string

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
base64mime
0.0.38 years ago9 years agoMinified + gzip package size for base64mime in KB

Readme

base64mime
Extract the MIME type from a base64 string.
Install
npm install base64mime

bower install base64mime
Usage
var base64Mime = require('base64mime');

var encoded = 'data:image/png;base64,iVBORw0KGgoAA...5CYII=';

console.log(base64Mime(encoded)); // "image/png"
License
MIT