{"_id":"isbuffer","_rev":"252057","name":"isbuffer","description":"isBuffer for node and browser (supports typed arrays)","dist-tags":{"latest":"0.0.0"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"time":{"modified":"2021-06-03T16:15:15.000Z","created":"2013-05-14T07:42:00.190Z","0.0.0":"2013-05-14T07:42:00.190Z"},"users":{},"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"repository":{"type":"git","url":"git://github.com/juliangruber/isbuffer.git"},"versions":{"0.0.0":{"name":"isbuffer","description":"isBuffer for node and browser (supports typed arrays)","version":"0.0.0","repository":{"type":"git","url":"git://github.com/juliangruber/isbuffer.git"},"homepage":"https://github.com/juliangruber/isbuffer","main":"index.js","scripts":{"test":"tape test.js"},"dependencies":{},"devDependencies":{"tape":"~1.0.2"},"keywords":["isbuffer","buffer","typedarrays","arraybuffer"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","readmeFilename":"README.md","_id":"isbuffer@0.0.0","dist":{"shasum":"38c146d9df528b8bf9b0701c3d43cf12df3fc39b","size":1856,"noattachment":false,"key":"/isbuffer/-/isbuffer-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/isbuffer/download/isbuffer-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"directories":{},"publish_time":1368517320190,"_cnpm_publish_time":1368517320190,"_hasShrinkwrap":false}},"readme":"\n# isBuffer\n\nCheck if something is a [Node.js Buffer](http://nodejs.org/api/buffer.html) or\n[Typed Array](https://developer.mozilla.org/en-US/docs/JavaScript/Typed_arrays)\n\n## Usage\n\n```js\nvar isBuffer = require('isbuffer');\n\nisBuffer(new Buffer(3)); // => true\nisBuffer(new Int8Array()); // => true\nisBuffer(['foo']); // => false\n```\n\n## Api\n\n### isBuffer(obj)\n\nReturn true if `obj` is a `Buffer` or `TypedArray`, otherwise return false.\n\n## Installation\n\nWith [npm](http://npmjs.org) do\n\n```bash\n$ npm install isbuffer\n```\n\n## License\n\n(MIT)\n\nCopyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_attachments":{},"readmeFilename":"README.md","homepage":"https://github.com/juliangruber/isbuffer","license":"MIT"}