is-data-uri
v0.1.0
Published
check data whether data-uri or not?
Downloads
9,647
Readme
is-data-uri
check data whether data-uri or not?
Install
$ npm install --save is-data-uri
Usage
const isDataUri = require('is-data-uri');
isDataUri('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA==');
//=> true
API
isDataUri(data)
data
Type: string
String of data-uri which you want to test
License
MIT © ragingwind