is-blob
    TypeScript icon, indicating that this package has built-in type declarations

    2.1.0 • Public • Published

    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

    Install

    npm i is-blob

    DownloadsWeekly Downloads

    319,215

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    2.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • sindresorhus