Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 529 Bytes

readme.md

File metadata and controls

35 lines (19 loc) · 529 Bytes

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