{"id":15698932,"url":"https://github.com/jonschlinkert/is-corrupted-jpeg","last_synced_at":"2025-07-17T20:36:50.477Z","repository":{"id":57277042,"uuid":"109330923","full_name":"jonschlinkert/is-corrupted-jpeg","owner":"jonschlinkert","description":"Returns true if a file appears to be a corrupted jpeg image file and is corrupted.","archived":false,"fork":false,"pushed_at":"2017-11-03T05:13:22.000Z","size":25,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-09T02:14:56.522Z","etag":null,"topics":["corrupted","file","javascript","jpeg","jpg","node","nodejs"],"latest_commit_sha":null,"homepage":"https://github.com/jonschlinkert","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonschlinkert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-02T23:52:23.000Z","updated_at":"2022-09-06T19:53:29.000Z","dependencies_parsed_at":"2022-09-17T10:12:49.130Z","dependency_job_id":null,"html_url":"https://github.com/jonschlinkert/is-corrupted-jpeg","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jonschlinkert/is-corrupted-jpeg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-corrupted-jpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-corrupted-jpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-corrupted-jpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-corrupted-jpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/is-corrupted-jpeg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-corrupted-jpeg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261330122,"owners_count":23142482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["corrupted","file","javascript","jpeg","jpg","node","nodejs"],"created_at":"2024-10-03T19:36:07.790Z","updated_at":"2025-06-22T17:08:35.150Z","avatar_url":"https://github.com/jonschlinkert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-corrupted-jpeg [![NPM version](https://img.shields.io/npm/v/is-corrupted-jpeg.svg?style=flat)](https://www.npmjs.com/package/is-corrupted-jpeg) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-corrupted-jpeg.svg?style=flat)](https://npmjs.org/package/is-corrupted-jpeg) [![NPM total downloads](https://img.shields.io/npm/dt/is-corrupted-jpeg.svg?style=flat)](https://npmjs.org/package/is-corrupted-jpeg) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-corrupted-jpeg.svg?style=flat\u0026label=Travis)](https://travis-ci.org/jonschlinkert/is-corrupted-jpeg)\n\n\u003e Returns true if a file appears to be a corrupted jpeg image file and is corrupted.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save is-corrupted-jpeg\n```\n\n## How reliable is this?\n\nThis will not be correct 100% of the time. This library only returns `true` when the jpeg's dimensions are undefined. However, it's possible for a jpeg to be corrupted whilst still having readable dimensions.\n\n## Usage\n\nTakes a filepath to a `.jpg` or `.jpeg` file (case insensitive).\n\n```js\nvar isCorrupted = require('is-corrupted-jpeg');\nconsole.log(isCorrupted('./path/to/image/not-corrupted.jpg'));\n//=\u003e true\nconsole.log(isCorrupted('./path/to/image/corrupted.jpg'));\n//=\u003e false\n```\n\n## About\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eContributing\u003c/strong\u003e\u003c/summary\u003e\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\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eRunning Tests\u003c/strong\u003e\u003c/summary\u003e\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 \u0026\u0026 npm test\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eBuilding docs\u003c/strong\u003e\u003c/summary\u003e\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 \u0026\u0026 verb\n```\n\n\u003c/details\u003e\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [fs-utils](https://www.npmjs.com/package/fs-utils): fs extras and utilities to extend the node.js file system module. Used in Assemble and… [more](https://github.com/assemble/fs-utils) | [homepage](https://github.com/assemble/fs-utils \"fs extras and utilities to extend the node.js file system module. Used in Assemble and many other projects.\")\n* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob \"Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet\")\n* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. | [homepage](https://github.com/micromatch/micromatch \"Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.\")\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 November 02, 2017._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fis-corrupted-jpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonschlinkert%2Fis-corrupted-jpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fis-corrupted-jpeg/lists"}