is-blob-url
v1.0.1
Published
Check if the given value is a Blob URL.
Downloads
5
Readme
is-blob-url
Check if the given value is a Blob URL.
Main
dist/
├── is-blob-url.js (UMD)
├── is-blob-url.min.js (UMD, compressed)
├── is-blob-url.common.js (CommonJS, default)
└── is-blob-url.esm.js (ES Module)
Install
npm install is-blob-url
Usage
Syntax
isBlobURL(value);
value
- Type:
*
- The value to check.
- Type:
(return value)
- Type:
Boolean
- Returns
true
if the given value is a Blob URL, elsefalse
.
- Type:
Examples
import isBlobURL from 'is-blob-url';
isBlobURL('blob:https://example.org/9115d58c-bcda-ff47-86e5-083e9a215304');
// => true
isBlobURL('blob:foo');
// => false