is-blob-url

1.0.1 • Public • Published

is-blob-url

Build Status Coverage Status Downloads Version

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.
  • (return value)

    • Type: Boolean
    • Returns true if the given value is a Blob URL, else false.

Examples

import isBlobURL from 'is-blob-url';
 
isBlobURL('blob:https://example.org/9115d58c-bcda-ff47-86e5-083e9a215304');
// => true
 
isBlobURL('blob:foo');
// => false

License

MIT © Chen Fengyuan

Readme

Keywords

Package Sidebar

Install

npm i is-blob-url

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

6.79 kB

Total Files

9

Last publish

Collaborators

  • chenfengyuan