is-data-uri

check data whether data-uri or not?

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-data-uri
0.1.09 years ago9 years agoMinified + gzip package size for is-data-uri in KB

Readme

is-data-uri Build Status
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