JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 311827
  • Score
    100M100P100Q161103F
  • License MIT

Check if a value is a Blob

Package Exports

  • is-blob

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-blob) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

License

MIT © Sindre Sorhus