{"_id":"is-psd","_rev":"12-974420005f93d43f316655be529d2fc2","name":"is-psd","description":"Check if a Buffer/Uint8Array is a PSD image","dist-tags":{"latest":"2.0.0"},"versions":{"0.1.0":{"name":"is-psd","version":"0.1.0","description":"Check if a Buffer/Uint8Array is a PSD image","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-psd"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["psd","photoshop","document","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"browserify":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/sindresorhus/is-psd/issues"},"homepage":"https://github.com/sindresorhus/is-psd","_id":"is-psd@0.1.0","dist":{"shasum":"da5f93f6403905f3412d84c416ad7f940cbaa176","tarball":"https://registry.npmjs.org/is-psd/-/is-psd-0.1.0.tgz","integrity":"sha512-K6gV/XONAWJh3jEMw3YNJLHoNu8wx8Vto1pXrcTsNH2QEQ2aHfFImDi9V29GSFg9Jl7wK9lcYY56s5k2pPpVCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDV7MlZ4oyd57JKNaz+powZcsIb6nBbU+vQSGcskhEM2wIhAO+nZdvVKpvbCeWD//01EMt1s9WFmJxMg3RKdc5sDrQ9"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"0.1.1":{"name":"is-psd","version":"0.1.1","description":"Check if a Buffer/Uint8Array is a PSD image","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-psd"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["psd","photoshop","document","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"browserify":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/sindresorhus/is-psd/issues"},"homepage":"https://github.com/sindresorhus/is-psd","_id":"is-psd@0.1.1","dist":{"shasum":"65f2b0a1aef3e794e914746f6969632397ba2e33","tarball":"https://registry.npmjs.org/is-psd/-/is-psd-0.1.1.tgz","integrity":"sha512-aaadRBBq5D6Vn6b7j7+O0uY816oovu93Mv0bv/v2PDFlOR3uo6Jzx/4Z6+F3rb0PyZ14w1XNfAsoa62bQaPFRQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDWL5+cD8GRun8P6/8vsIrhzs6OBURsBadp0zYWB4dKKAiEA8Ld2jDmWQ14+l9VQZm3uj0OvXwanvFFWDfN6cIGapsc="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.0.0":{"name":"is-psd","version":"1.0.0","description":"Check if a Buffer/Uint8Array is a PSD image","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/is-psd"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["psd","photoshop","document","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"mocha":"*","read-chunk":"^1.0.0"},"gitHead":"cf1bf134189659985010da7393a124ec1a12661a","bugs":{"url":"https://github.com/sindresorhus/is-psd/issues"},"homepage":"https://github.com/sindresorhus/is-psd","_id":"is-psd@1.0.0","_shasum":"43795089107701c8b816102bef0cf9cc98e3b5de","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"43795089107701c8b816102bef0cf9cc98e3b5de","tarball":"https://registry.npmjs.org/is-psd/-/is-psd-1.0.0.tgz","integrity":"sha512-0RxdLlCmtPl8hUyRKVAHfDuyZjmr9gsQqW6iezlJFnd3CaWKlC6qtrP9G8mXzLyGr1ngJ8l5qLLR0meV91viUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBM+iMWrhKMPOsLlDNfTTMECPXLjC1U0HJ57hWn0NaQTAiAwLIeG0Iq/7k+7ly5XK1Ppr8Z3w/RoqVtczEO+QR2PJA=="}]},"directories":{}},"1.0.1":{"name":"is-psd","version":"1.0.1","description":"Check if a Buffer/Uint8Array is a PSD image","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-psd.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["psd","photoshop","document","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"mocha":"*","read-chunk":"^1.0.0"},"gitHead":"64f00c9d2e856dc895f039714ca885ba5dcd7ca4","bugs":{"url":"https://github.com/sindresorhus/is-psd/issues"},"homepage":"https://github.com/sindresorhus/is-psd#readme","_id":"is-psd@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-xypq6EZdJepbBhEY9of8FkWUBgSVWqktLlkzSROkAPmTN+aHL4hqnS/pnLpHjTnRDSTYPeIb49CmCKaHL8NG0A==","shasum":"b021d9e2ed2e31deda497c95ba94745e2c46e2b8","tarball":"https://registry.npmjs.org/is-psd/-/is-psd-1.0.1.tgz","fileCount":4,"unpackedSize":2983,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsSZXRUd6jPBS60UO8RZVJauxtaDh6B33hRPjbiRFOdAIhANHQt9Rq8cxK0NAavNF9uTedw5SEgt2EMd6yV7R0ntMA"}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-psd_1.0.1_1521734448260_0.5371755390622752"},"_hasShrinkwrap":false},"2.0.0":{"name":"is-psd","version":"2.0.0","description":"Check if a Buffer/Uint8Array is a PSD image","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-psd.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava"},"keywords":["psd","photoshop","document","graphics","image","img","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"ava":"^3.15.0","read-chunk":"^4.0.0","xo":"^0.44.0"},"gitHead":"9c657545035ba301e285b00ddd33017dc2c93bdd","bugs":{"url":"https://github.com/sindresorhus/is-psd/issues"},"homepage":"https://github.com/sindresorhus/is-psd#readme","_id":"is-psd@2.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.13.0","dist":{"integrity":"sha512-kU44gq7nvQRHtvLkB2W0Uue0ka4EHnNvWiA1QMu1C2da3ZDPFFfC0lYAmbGzp5RIrrLeBhA7IpyNZfnp2VQMuw==","shasum":"03ce3fbd18dfe7dae8a9e2a9b5b25b8fb0d5dc5b","tarball":"https://registry.npmjs.org/is-psd/-/is-psd-2.0.0.tgz","fileCount":4,"unpackedSize":2904,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhElWKCRA9TVsSAnZWagAAz5oP/jf5Fsn2gFuN2TBHzAhC\nleJbRQvUIaYl0XR2+sjhqDHWQqj877Lk3fWnaE4Xa5fQws1YM+1aQUBiFZHP\neFYo7HIv2qBl4DTFfekODViBu/QLqy/6GqG4P0ZgxNHa77e+i4+waGVF1bJb\nMQxmaPsySS/hx1vvL8lhZFyF1xHsAP1dkB6dcH4Fnvdn6EUghO8g8n3EtuHX\noYajxUR168ptWMmLUu1Ia/5mkVB0/xOjJvy5RAD3wQ91MVFkhuaMHvwhv2Tt\ngCZ66x9Axr31iJsQdRIITxi2nrvosxzfU67qdSlbwZUbtJ1wgpoLT+AkDSdB\n3roTUrhOtpi5UvUyCrbQG18BHHrzyif1W9SxvsgQFzusDNOu0u7Z7gekUeSQ\npuAqT3MeloZAYaHJ5FYKtsUr9z3sOwe01vXUl4qoDGgPWTWNoVhqyDMbyuum\nfohMMo14VoYtivM0vzeQGbo4sq+i6qYM5lgR8/cewH5j4odXYpI1Imm8qCby\n1Gi5QmWCNe6G7LonzDny743HkmZJ4sshZ4qdGy572uCIobYbSQ2G5qR/pkjG\nMD7XWiJZQXHZssXbund7Qpz8QoUgkRvvq3C7acmSS7zJw23n2EaQHKQVtgJO\n47FnKpwsmeelKNuV/kq9PcuS6ElAQD4JAVQ+t90Sbr844Vo3vZfgQjUEv2BJ\nA6d4\r\n=w6SQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID79ctxL3yMPfWTRCbc8fMT/b5g3yPsFPd/EKaRPOmOxAiAyijUB4ssPOQGJaDxSu1GftWI53uqoVbSu5N3awnSPNQ=="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-psd_2.0.0_1628591498281_0.7662066349561514"},"_hasShrinkwrap":false}},"readme":"# is-psd\n\n> Check if a Buffer/Uint8Array is a [PSD](https://en.wikipedia.org/wiki/Adobe_Photoshop#File_format) image\n\n## Install\n\n```\n$ npm install is-psd\n```\n\n## Usage\n\n##### Node.js\n\n```js\nimport {readChunkSync} from 'read-chunk';\nimport isPsd from 'is-psd';\n\nconst buffer = readChunkSync('unicorn.psd', {length: 4});\n\nisPsd(buffer);\n//=> true\n```\n\n##### Browser\n\n```js\nconst xhr = new XMLHttpRequest();\nxhr.open('GET', 'unicorn.psd');\nxhr.responseType = 'arraybuffer';\n\nxhr.onload = () => {\n\tisPsd(new Uint8Array(this.response));\n\t//=> true\n};\n\nxhr.send();\n```\n\n## API\n\n### isPsd(buffer)\n\nAccepts a `Buffer` (Node.js) or `Uint8Array`.\n\nIt only needs the first 4 bytes.\n\n## Related\n\n- [file-type](https://github.com/sindresorhus/file-type) - Detect the file type of a Buffer/Uint8Array\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2022-06-19T02:48:54.175Z","created":"2014-04-21T17:43:57.877Z","0.1.0":"2014-04-21T17:43:57.877Z","0.1.1":"2014-04-29T19:13:12.691Z","1.0.0":"2014-08-14T14:36:01.460Z","1.0.1":"2018-03-22T16:00:48.305Z","2.0.0":"2021-08-10T10:31:38.391Z"},"homepage":"https://github.com/sindresorhus/is-psd#readme","keywords":["psd","photoshop","document","graphics","image","img","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-psd.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/is-psd/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"rocket0191":true}}