is-data-uri

v0.1.0
check data whether data-uri or not?

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

npm i is-data-uri

Metadata

  • MIT
  • >=0.10.0
  • ragingwind
  • released 12/16/2015

Downloads

Maintainers