Comparing version 1.1.5 to 1.1.6
/*! | ||
* Determine if an object is a Buffer | ||
* | ||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> | ||
* @author Feross Aboukhadijeh <https://feross.org> | ||
* @license MIT | ||
@@ -6,0 +6,0 @@ */ |
{ | ||
"name": "is-buffer", | ||
"description": "Determine if an object is a Buffer", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Feross Aboukhadijeh", |
@@ -1,7 +0,3 @@ | ||
# is-buffer [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][npm-url] | ||
# is-buffer [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url] | ||
#### Determine if an object is a [`Buffer`](http://nodejs.org/api/buffer.html) (including the [browserify Buffer](https://github.com/feross/buffer)) | ||
[![saucelabs][saucelabs-image]][saucelabs-url] | ||
[travis-image]: https://img.shields.io/travis/feross/is-buffer/master.svg | ||
@@ -12,2 +8,10 @@ [travis-url]: https://travis-ci.org/feross/is-buffer | ||
[downloads-image]: https://img.shields.io/npm/dm/is-buffer.svg | ||
[downloads-url]: https://npmjs.org/package/is-buffer | ||
[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg | ||
[standard-url]: https://standardjs.com | ||
#### Determine if an object is a [`Buffer`](http://nodejs.org/api/buffer.html) (including the [browserify Buffer](https://github.com/feross/buffer)) | ||
[![saucelabs][saucelabs-image]][saucelabs-url] | ||
[saucelabs-image]: https://saucelabs.com/browser-matrix/is-buffer.svg | ||
@@ -14,0 +18,0 @@ [saucelabs-url]: https://saucelabs.com/u/is-buffer |
@@ -1,2 +0,1 @@ | ||
var buffer = require('buffer') | ||
var isBuffer = require('../') | ||
@@ -6,4 +5,4 @@ var test = require('tape') | ||
test('is-buffer', function (t) { | ||
t.equal(isBuffer(new Buffer(4)), true, 'new Buffer(4)') | ||
t.equal(isBuffer(buffer.SlowBuffer(100)), true, 'SlowBuffer(100)') | ||
t.equal(isBuffer(Buffer.alloc(4)), true, 'new Buffer(4)') | ||
t.equal(isBuffer(Buffer.allocUnsafeSlow(100)), true, 'SlowBuffer(100)') | ||
@@ -10,0 +9,0 @@ t.equal(isBuffer(undefined), false, 'undefined') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
5575
0
54
5
39