is-blob
Check if a value is a `Blob`
Last updated 6 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm
$ cnpm install is-blob 
SYNC missed versions from official npm registry.

is-blob Build Status

Check if a value is a Blob - File-like object of immutable, raw data

Blob is only available in the browser. In Node.js, it always returns false.

Install

$ npm install is-blob

Usage

const isBlob = require('is-blob');

isBlob(new Blob(['<h1>Unicorns</h1>'], {type: 'text/html'}));
//=> true

Related

  • is - Type check values

Current Tags

  • 3.0.0                                ...           latest (4 years ago)

5 Versions

  • 1.0.0                                ...           10 years ago
  • 2.0.0                                ...           7 years ago
  • 2.0.1                                ...           7 years ago
  • 3.0.0                                ...           4 years ago
  • 2.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org