{"_id":"file-is-binary","_rev":"82232","name":"file-is-binary","description":"Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:26:13.000Z","created":"2016-08-11T18:49:49.999Z","1.0.0":"2017-05-19T20:57:57.663Z","0.2.3":"2017-03-18T06:23:58.419Z","0.2.2":"2017-02-03T01:17:10.310Z","0.2.1":"2016-08-11T19:19:14.549Z","0.2.0":"2016-08-11T19:13:30.420Z","0.1.2":"2016-08-11T19:05:40.287Z","0.1.1":"2016-08-11T18:53:17.065Z","0.1.0":"2016-08-11T18:49:49.999Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-is-binary.git"},"versions":{"1.0.0":{"name":"file-is-binary","description":"Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/file-is-binary","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-is-binary.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-is-binary/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"is-binary-buffer":"^1.0.0","isobject":"^3.0.0"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.4.1","vinyl":"^2.0.2"},"keywords":["binary","file","is","vinyl"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["file-contents","file-stat","gulp-is-binary"]},"reflinks":[],"lint":{"reflinks":true}},"gitHead":"802961ec228d5166ae838959821ff9cb28cdd739","_id":"file-is-binary@1.0.0","_shasum":"5e41806d1bcae458c8fec32fe3ce122dbbbc4356","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"5e41806d1bcae458c8fec32fe3ce122dbbbc4356","size":2692,"noattachment":false,"key":"/file-is-binary/-/file-is-binary-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-is-binary/download/file-is-binary-1.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-is-binary-1.0.0.tgz_1495227476554_0.5643918262794614"},"directories":{},"publish_time":1495227477663,"_hasShrinkwrap":false,"_cnpm_publish_time":1495227477663},"0.2.3":{"name":"file-is-binary","description":"Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.","version":"0.2.3","homepage":"https://github.com/jonschlinkert/file-is-binary","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-is-binary.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-is-binary/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"isbinaryfile":"^3.0.2","isobject":"^3.0.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.2.0","vinyl":"^2.0.1"},"keywords":["binary","file","is","vinyl"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["file-contents","file-stat","gulp-is-binary"]},"reflinks":["verb","verb-generate-readme"],"lint":{"reflinks":true}},"gitHead":"ec8ea3e33549c8d935ea56e72bfa5f59e3bb869f","_id":"file-is-binary@0.2.3","_shasum":"51b62ea8c6cb687124a85d2034e8f0b22ecda8df","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"51b62ea8c6cb687124a85d2034e8f0b22ecda8df","size":2734,"noattachment":false,"key":"/file-is-binary/-/file-is-binary-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-is-binary/download/file-is-binary-0.2.3.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/file-is-binary-0.2.3.tgz_1489818236387_0.7891814506147057"},"directories":{},"publish_time":1489818238419,"_cnpm_publish_time":1489818238419,"_hasShrinkwrap":false},"0.2.2":{"name":"file-is-binary","description":"Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.","version":"0.2.2","homepage":"https://github.com/jonschlinkert/file-is-binary","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-is-binary.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-is-binary/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"file-stat":"^1.0.0","isbinaryfile":"^3.0.2","isobject":"^3.0.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.2.0","vinyl":"^2.0.1"},"keywords":["binary","file","is"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["file-contents","file-stat","gulp-is-binary"]},"reflinks":["verb","verb-generate-readme"],"lint":{"reflinks":true}},"gitHead":"254681044bbdd4d07bc72eab578833b82142aa2f","_id":"file-is-binary@0.2.2","_shasum":"ebf03d229865ec759c954e0b780216b1e40dc733","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ebf03d229865ec759c954e0b780216b1e40dc733","size":2732,"noattachment":false,"key":"/file-is-binary/-/file-is-binary-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-is-binary/download/file-is-binary-0.2.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/file-is-binary-0.2.2.tgz_1486084628228_0.6077886272687465"},"directories":{},"publish_time":1486084630310,"_cnpm_publish_time":1486084630310,"_hasShrinkwrap":false},"0.2.1":{"name":"file-is-binary","description":"Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/file-is-binary","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-is-binary.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-is-binary/issues"},"license":"MIT","files":["index.js","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"file-stat":"^0.2.3","isbinaryfile":"^3.0.1","isobject":"^2.1.0"},"devDependencies":{"gulp-format-md":"^0.1.10","mocha":"^3.0.2","vinyl":"^1.2.0"},"keywords":["binary","file","is"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["gulp-is-binary","file-contents","file-stat"]},"reflinks":["verb","verb-generate-readme"],"lint":{"reflinks":true}},"gitHead":"ade9dae382102189632697aa394eca6e5c710ff4","_id":"file-is-binary@0.2.1","_shasum":"80af76de6048e963e9522838e4d7e45f1f8be39e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"80af76de6048e963e9522838e4d7e45f1f8be39e","size":2716,"noattachment":false,"key":"/file-is-binary/-/file-is-binary-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-is-binary/download/file-is-binary-0.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/file-is-binary-0.2.1.tgz_1470943152496_0.8965217983350158"},"directories":{},"publish_time":1470943154549,"_cnpm_publish_time":1470943154549,"_hasShrinkwrap":false},"0.2.0":{"name":"file-is-binary","description":"Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/file-is-binary","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-is-binary.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-is-binary/issues"},"license":"MIT","files":["index.js","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"file-stat":"^0.2.3","isbinaryfile":"^3.0.1","isobject":"^2.1.0"},"devDependencies":{"gulp-format-md":"^0.1.10","mocha":"^3.0.2","vinyl":"^1.2.0"},"keywords":["binary","file","is"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["gulp-is-binary","file-contents","file-stat"]},"reflinks":["verb","verb-generate-readme"],"lint":{"reflinks":true}},"gitHead":"ade9dae382102189632697aa394eca6e5c710ff4","_id":"file-is-binary@0.2.0","_shasum":"317c086f3f098869bef7e34437ef41a4fa1f6105","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"317c086f3f098869bef7e34437ef41a4fa1f6105","size":2710,"noattachment":false,"key":"/file-is-binary/-/file-is-binary-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-is-binary/download/file-is-binary-0.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/file-is-binary-0.2.0.tgz_1470942809168_0.04426312632858753"},"directories":{},"publish_time":1470942810420,"_cnpm_publish_time":1470942810420,"_hasShrinkwrap":false},"0.1.2":{"name":"file-is-binary","description":"Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/file-is-binary","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-is-binary.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-is-binary/issues"},"license":"MIT","files":["index.js","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"isbinaryfile":"^3.0.1","isobject":"^2.1.0"},"devDependencies":{"gulp-format-md":"^0.1.10","mocha":"^3.0.2","vinyl":"^1.2.0"},"keywords":["binary","file","is"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["gulp-is-binary","file-contents","file-stat"]},"reflinks":["verb","verb-generate-readme"],"lint":{"reflinks":true}},"gitHead":"70378ba2e3dd79e7dbe4deef9bf1df0be19e6968","_id":"file-is-binary@0.1.2","_shasum":"07a6492df4aa7d94827928d2d72e747e2316de71","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"07a6492df4aa7d94827928d2d72e747e2316de71","size":2596,"noattachment":false,"key":"/file-is-binary/-/file-is-binary-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-is-binary/download/file-is-binary-0.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/file-is-binary-0.1.2.tgz_1470942338483_0.8726247511804104"},"directories":{},"publish_time":1470942340287,"_cnpm_publish_time":1470942340287,"_hasShrinkwrap":false},"0.1.1":{"name":"file-is-binary","description":"Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/file-is-binary","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-is-binary.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-is-binary/issues"},"license":"MIT","files":["index.js","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"isbinaryfile":"^3.0.1","isobject":"^2.1.0"},"devDependencies":{"gulp-format-md":"^0.1.10","mocha":"^3.0.2","vinyl":"^1.2.0"},"keywords":["binary","file","is"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["gulp-is-binary","file-contents","file-stat"]},"reflinks":["verb","verb-generate-readme"],"lint":{"reflinks":true}},"gitHead":"d5410a261879e103b2eb05395d974491a40986ab","_id":"file-is-binary@0.1.1","_shasum":"a48604a9471f10f76ea2d45e4ee3baf6c846421b","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a48604a9471f10f76ea2d45e4ee3baf6c846421b","size":2618,"noattachment":false,"key":"/file-is-binary/-/file-is-binary-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-is-binary/download/file-is-binary-0.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/file-is-binary-0.1.1.tgz_1470941595862_0.8411968604195863"},"directories":{},"publish_time":1470941597065,"_cnpm_publish_time":1470941597065,"_hasShrinkwrap":false},"0.1.0":{"name":"file-is-binary","description":"Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/file-is-binary","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-is-binary.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-is-binary/issues"},"license":"MIT","files":["index.js","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"isbinaryfile":"^3.0.1","isobject":"^2.1.0"},"devDependencies":{"gulp-format-md":"^0.1.10","mocha":"^3.0.2","vinyl":"^1.2.0"},"keywords":["binary","file","is"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":[]},"reflinks":["verb","verb-generate-readme"]},"gitHead":"cd43eda1b05532e08baa4af43930e129a9247e5f","_id":"file-is-binary@0.1.0","_shasum":"d9bed9fc46b0f21bb2e7ba0990d08cd0db4692be","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"d9bed9fc46b0f21bb2e7ba0990d08cd0db4692be","size":2397,"noattachment":false,"key":"/file-is-binary/-/file-is-binary-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-is-binary/download/file-is-binary-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/file-is-binary-0.1.0.tgz_1470941387945_0.6688734535127878"},"directories":{},"publish_time":1470941389999,"_cnpm_publish_time":1470941389999,"_hasShrinkwrap":false}},"readme":"# file-is-binary [![NPM version](https://img.shields.io/npm/v/file-is-binary.svg?style=flat)](https://www.npmjs.com/package/file-is-binary) [![NPM monthly downloads](https://img.shields.io/npm/dm/file-is-binary.svg?style=flat)](https://npmjs.org/package/file-is-binary) [![NPM total downloads](https://img.shields.io/npm/dt/file-is-binary.svg?style=flat)](https://npmjs.org/package/file-is-binary) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/file-is-binary.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/file-is-binary)\n\n> Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save file-is-binary\n```\n\n## Usage\n\nUses [isbinaryfile](https://github.com/gjtorikian/isBinaryFile) to check the file contents and return\n\n```js\nvar isBinary = require('file-is-binary');\n\nvar file = new File({path: 'foo.gif', contents: fs.readFileSync('foo.gif')});\nconsole.log(isBinary(file));\n\nvar file = new File({path: 'bar.txt', contents: fs.readFileSync('bar.txt')});\nconsole.log(isBinary(file));\n//=> false\n```\n\n## About\n\n### Related projects\n\n* [file-contents](https://www.npmjs.com/package/file-contents): Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or… [more](https://github.com/jonschlinkert/file-contents) | [homepage](https://github.com/jonschlinkert/file-contents \"Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.\")\n* [file-stat](https://www.npmjs.com/package/file-stat): Set the `stat` property on a file object. Abstraction from vinyl-fs to support stream or… [more](https://github.com/jonschlinkert/file-stat) | [homepage](https://github.com/jonschlinkert/file-stat \"Set the `stat` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.\")\n* [gulp-is-binary](https://www.npmjs.com/package/gulp-is-binary): Adds an `.isBinary()` function to the `file` object, similar to `file.isNull()` and `file.isStream()`. | [homepage](https://github.com/jonschlinkert/gulp-is-binary \"Adds an `.isBinary()` function to the `file` object, similar to `file.isNull()` and `file.isStream()`.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nPlease read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 19, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/file-is-binary","bugs":{"url":"https://github.com/jonschlinkert/file-is-binary/issues"},"license":"MIT"}