2.0.5 • Published 5 years ago

is-buffer v2.0.5

Weekly downloads
26,738,175
License
MIT
Repository
github
Last release
5 years ago

is-buffer travis npm downloads javascript style guide

Determine if an object is a Buffer (including the browserify Buffer)

saucelabs

Why not use Buffer.isBuffer?

This module lets you check if an object is a Buffer without using Buffer.isBuffer (which includes the whole buffer module in browserify).

It's future-proof and works in node too!

install

npm install is-buffer

usage

var isBuffer = require('is-buffer')

isBuffer(new Buffer(4)) // true
isBuffer(Buffer.alloc(4)) //true

isBuffer(undefined) // false
isBuffer(null) // false
isBuffer('') // false
isBuffer(true) // false
isBuffer(false) // false
isBuffer(0) // false
isBuffer(1) // false
isBuffer(1.0) // false
isBuffer('string') // false
isBuffer({}) // false
isBuffer(function foo () {}) // false

license

MIT. Copyright (C) Feross Aboukhadijeh.

md5remove-bom-buffer@wetransfer/axios@linhan/axiosarchetype-librarybupbethuytinhbupbethuytinhv2bupbethuytinhv3componennenttvuedragdropuploadimagespopsmart-common-authreact-native-bluetooth2killi8n-react-native-fast-imagern-send-smsimage-grayscalespecify-importsbabel-specify-imports@icanpm/api-mastergew-nodejs-api-client@arisageha/react-lazyload@arisageha/react-lazyload-fix@cashremit/cr-streamline-iconsreact-native-template-rfbasecloud-archive-s3airscanairscan-examplebb-chatreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxf@phil8795/pecuniarius-apideneme323112vue-axios-qs@texttree/demo-bsa-reference-rcl@fundefund/funde_ck@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjamesreact-native-covid-sdkgql_din_modreact-native-thanh-toast-library@thanhnguyen14797/react-native-thanh-toast-library@l1nyanm1ng/react-picture-viewercthpb-plugin-socialreact-nice-template@unifiedts/engine@unifiedts/unified@olivervorasai/sliderpanqibaoreact-native-printer-brothersrn-pdf-reader-offlinereact-native-shekhar-bridge-testuinz-notificationwilscanner@oiti/documentoscopy-react-nativejs4cytoscape@mink-opn/build-tokensquoc-testreact-native-slider-kfunblock-block-save-variables@infinitebrahmanuniverse/nolb-is-b@saaspe/componentsplginexpand-react-bridge@everything-registry/sub-chunk-1932ondcloutregulars-frontendgriffin-ui-library@wacoco/ytaman-baca-masyarakattc-httptan-md5tanngotailwind-vector-effectsyncbackbasessw-js-schemasvprtest-carosello-campustest-library-123test-haptik-libteadanteatest-npm-jjmessiwallet-mesmewdh123web3-22077-devweb3-22077-provue-button-test1webchewebdesa-laravel-final-releasewebsocket-clusterwechat_axioswed_developerwrite-filewoven-challenge-deploywx-axiosxdms3wifi_configuration_packagewz-cryptteapackage-tatespoorman297superset-plugin-chart-hello-world2supercluster-googlemaps-adapter-clones
2.0.5

5 years ago

2.0.4

6 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

11 years ago

1.0.0

11 years ago