Skip to content

blobReadingMethods

Prefer direct Blob reading methods over wrapping in Response for simpler code.

✅ This rule is included in the node stylistic and stylisticStrict presets.

Direct Blob methods are simpler and more direct than wrapping the Blob in a Response object. The Response wrapper adds unnecessary complexity when the Blob already provides the needed methods.

AEconsB0teAE = awai72nAB0Respon53(bloAB0te53(<);d ivclassNa="meec-li">dAEconsB0arrayBuffAE = awai72nAB0Respon53(bloAB0arrayBuff53(<);d ivclassNa="meec-li">dAEconsB0bytAE = awai72nAB0Respon53(bloAB0byt53(<);d ivclassNa="meco"><);d>
44AEco61B044AE = aw3F534<4AE. spans="tyle--0:#82AAFF;--1:#3B">61B03F5<3() ;divclass="Nameec-">c44AEco61B0arrayBu44AE = aw3F534<4AE. spans="tyle--0:#82AAFF;--1:#3B">61B0arrayBu3F5<3() ;divclass="Nameec-">c44AEco61B0b44AE = aw3F534<4AE. spans="tyle--0:#82AAFF;--1:#3B">61B0b3F5<3() ;divclass="Name">

This rule is not configurable.

If you need to use Response-specific functionality while reading the Blob data, you might choose not to enable this rule.