{"_id":"@abhijith_213-/js-file-magic-number-checker","_rev":"8-75371686a74e51a3f44741d68d454f09","name":"@abhijith_213-/js-file-magic-number-checker","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@abhijith_213-/js-file-magic-number-checker","version":"1.0.0","description":"","main":"index.js","scripts":{"start":"node index.js","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Abhijith"},"license":"ISC","gitHead":"4c2044eeaf8b3bf2c75259402bb13d2a0681191b","_id":"@abhijith_213-/js-file-magic-number-checker@1.0.0","_nodeVersion":"16.17.1","_npmVersion":"9.1.2","dist":{"integrity":"sha512-CyKRZpgPVTiGsDiTb6U418jobkBm79ipPIVUPmJOdSMy7gGWDWcnM29IRX6o56rmMxLeo8Nb/opMV5tLhnHxtQ==","shasum":"006c1b65983a76675a802d5879099ebd2ff6a1c3","tarball":"https://registry.npmjs.org/@abhijith_213-/js-file-magic-number-checker/-/js-file-magic-number-checker-1.0.0.tgz","fileCount":3,"unpackedSize":27292,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHzzeOVXv8Q5vK+xRak4h4B82ESl48MzcG0ntiAQLDt6AiBw2XPpJsbMRX7KluC5b/ULo7Pdk7sc5HIuhXOeTrTCBg=="}]},"_npmUser":{"name":"abhijith_213-","email":"abhijithani007@gmail.com"},"directories":{},"maintainers":[{"name":"abhijith_213-","email":"abhijithani007@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-file-magic-number-checker_1.0.0_1691496951217_0.9666559671386747"},"_hasShrinkwrap":false},"1.0.1":{"name":"@abhijith_213-/js-file-magic-number-checker","version":"1.0.1","description":"FileTypeChecker","main":"index.js","scripts":{"start":"node index.js","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Abhijith"},"license":"ISC","gitHead":"4c2044eeaf8b3bf2c75259402bb13d2a0681191b","_id":"@abhijith_213-/js-file-magic-number-checker@1.0.1","_nodeVersion":"16.17.1","_npmVersion":"9.1.2","dist":{"integrity":"sha512-zUs8cUcvKMz2gzcTkfV1OIkm8jb6lPOVSpF1EmZ5XYMZrsqsCuDGKitYqZ5dDrdOGzp4j1bxF8txq9FQJmiaaA==","shasum":"79b7d7c12bf18b22b6aa60e007acb985da0312c2","tarball":"https://registry.npmjs.org/@abhijith_213-/js-file-magic-number-checker/-/js-file-magic-number-checker-1.0.1.tgz","fileCount":4,"unpackedSize":28895,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCN61OxNVVOimXhf9Z53QyoayjqQlQgTsunkaIxbj1luwIgceyxP4OPX0BrvLk6yrKaZzCEpfyTyOIukWzAT6dKcv8="}]},"_npmUser":{"name":"abhijith_213-","email":"abhijithani007@gmail.com"},"directories":{},"maintainers":[{"name":"abhijith_213-","email":"abhijithani007@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-file-magic-number-checker_1.0.1_1691497149492_0.4339778923300899"},"_hasShrinkwrap":false},"1.0.2":{"name":"@abhijith_213-/js-file-magic-number-checker","version":"1.0.2","description":"FileTypeChecker","main":"index.js","scripts":{"start":"node index.js","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Abhijith"},"license":"ISC","gitHead":"4c2044eeaf8b3bf2c75259402bb13d2a0681191b","_id":"@abhijith_213-/js-file-magic-number-checker@1.0.2","_nodeVersion":"16.17.1","_npmVersion":"9.1.2","dist":{"integrity":"sha512-4VUryM/ETomcaNJxw3Yi6+a2fIfsguSx/sIudd9q3HhlSHImZ9xw9UpezW8HoHur4uZ/BMRGNtQ5Nh9N/srPbg==","shasum":"443d218d86cb521586590e429d089c2ebad6bfa5","tarball":"https://registry.npmjs.org/@abhijith_213-/js-file-magic-number-checker/-/js-file-magic-number-checker-1.0.2.tgz","fileCount":4,"unpackedSize":28791,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpY+LEtqIx2l+z4myFgKbE5b0eta3+VKcK7ppzN1E5/QIhANrOARDCZhmeN4Pse5yb5pHppXHPHsq93zogchvbri1s"}]},"_npmUser":{"name":"abhijith_213-","email":"abhijithani007@gmail.com"},"directories":{},"maintainers":[{"name":"abhijith_213-","email":"abhijithani007@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-file-magic-number-checker_1.0.2_1691498188277_0.19043913111263966"},"_hasShrinkwrap":false},"1.0.3":{"name":"@abhijith_213-/js-file-magic-number-checker","version":"1.0.3","description":"<div align=\"center\">   <img src=\"https://your-image-url.com/your-logo.png\" alt=\"js-file-magic-number-checker Logo\" width=\"200\"> </div>","main":"index.js","scripts":{"start":"node index.js","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Abhijith"},"license":"ISC","gitHead":"4c2044eeaf8b3bf2c75259402bb13d2a0681191b","_id":"@abhijith_213-/js-file-magic-number-checker@1.0.3","_nodeVersion":"16.17.1","_npmVersion":"9.1.2","dist":{"integrity":"sha512-6S/IeZY8inB3wLDb2u5C98IVgyOibutLaF3i+Orb4LENZ9SSol1PkV+9tcKnRPQUdzsjsXC4Z3EdfvB98gP40g==","shasum":"7812f127cae6f972c686b58d6d236077ba6b38f4","tarball":"https://registry.npmjs.org/@abhijith_213-/js-file-magic-number-checker/-/js-file-magic-number-checker-1.0.3.tgz","fileCount":4,"unpackedSize":30858,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFLAgo3AlgPMqnLldjv+V+3VkquUpVke0HXNkHAO0SIoAiEAq2IX0lhscg2ETIVAgQd8HStDTbzOgbirSK3C/qAZ/y0="}]},"_npmUser":{"name":"abhijith_213-","email":"abhijithani007@gmail.com"},"directories":{},"maintainers":[{"name":"abhijith_213-","email":"abhijithani007@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-file-magic-number-checker_1.0.3_1691506775383_0.3008684790460583"},"_hasShrinkwrap":false},"1.0.4":{"name":"@abhijith_213-/js-file-magic-number-checker","version":"1.0.4","description":"<div align=\"center\">   <img src=\"https://your-image-url.com/your-logo.png\" alt=\"js-file-magic-number-checker Logo\" width=\"200\"> </div>","main":"index.js","scripts":{"start":"node index.js","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Abhijith"},"license":"ISC","gitHead":"4c2044eeaf8b3bf2c75259402bb13d2a0681191b","_id":"@abhijith_213-/js-file-magic-number-checker@1.0.4","_nodeVersion":"16.17.1","_npmVersion":"9.1.2","dist":{"integrity":"sha512-6LElkUkn8bDw+geA0iHeqtqFWXOPb8uC/b8v8MUAK8jnZXG20CkoROGBnFXkYT6kxQc41tquoryhwfL2fcVZuw==","shasum":"2c248c7be59ce7fe43880b53136f516805bea1e2","tarball":"https://registry.npmjs.org/@abhijith_213-/js-file-magic-number-checker/-/js-file-magic-number-checker-1.0.4.tgz","fileCount":4,"unpackedSize":30825,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDh+jvOojl5l+60UtQkNaCwVVuyCF48qd8CfgRKQXpUWAiBb1lUSDMlYD1hWmrbsPRRHYpGLg3qcHEiV2JQHmCEZPA=="}]},"_npmUser":{"name":"abhijith_213-","email":"abhijithani007@gmail.com"},"directories":{},"maintainers":[{"name":"abhijith_213-","email":"abhijithani007@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-file-magic-number-checker_1.0.4_1691506985035_0.37923440254253515"},"_hasShrinkwrap":false},"1.0.5":{"name":"@abhijith_213-/js-file-magic-number-checker","version":"1.0.5","description":"<h1 align=\"center\">js-file-magic-number-checker</h1>","main":"index.js","scripts":{"start":"node index.js","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Abhijith"},"license":"ISC","gitHead":"4c2044eeaf8b3bf2c75259402bb13d2a0681191b","_id":"@abhijith_213-/js-file-magic-number-checker@1.0.5","_nodeVersion":"16.17.1","_npmVersion":"9.1.2","dist":{"integrity":"sha512-TvVw8S58lf6c4rEHbbBBdHvQ/Q2cYJDTzJ+KRz5/7Fqz5oq+cm+SjQ3X+uFVYvZKzjF6HT9X3uIcgv2+/6T/mw==","shasum":"c19c34a14dc405334ceb653433f94734e887e391","tarball":"https://registry.npmjs.org/@abhijith_213-/js-file-magic-number-checker/-/js-file-magic-number-checker-1.0.5.tgz","fileCount":4,"unpackedSize":30755,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEipu4HODYv+pw87OgeNchyfDA4zzZEQFPUtUJ2qm0XnAiAfEtrI5xzjpf14wqI5c+u+w2YREfAy6et3BMqn/2IVrA=="}]},"_npmUser":{"name":"abhijith_213-","email":"abhijithani007@gmail.com"},"directories":{},"maintainers":[{"name":"abhijith_213-","email":"abhijithani007@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-file-magic-number-checker_1.0.5_1691507393411_0.08547681123022954"},"_hasShrinkwrap":false},"1.0.6":{"name":"@abhijith_213-/js-file-magic-number-checker","version":"1.0.6","description":"<h1 align=\"center\">js-file-magic-number-checker</h1>","main":"index.js","scripts":{"start":"node index.js","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Abhijith"},"license":"ISC","gitHead":"4c2044eeaf8b3bf2c75259402bb13d2a0681191b","_id":"@abhijith_213-/js-file-magic-number-checker@1.0.6","_nodeVersion":"16.17.1","_npmVersion":"9.1.2","dist":{"integrity":"sha512-5M8ZQk8fFGyCQbUMzRJHZOST12O+vh0PSBFnFVJhEKi79YG6pACObZVGvgl4w86MjzSn0hu1UR0OrVdzXhAxaQ==","shasum":"b0576bcc9646beecfca97d8eece30a1ad13ad613","tarball":"https://registry.npmjs.org/@abhijith_213-/js-file-magic-number-checker/-/js-file-magic-number-checker-1.0.6.tgz","fileCount":4,"unpackedSize":30735,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFQ6r/h3ADxXe5nbvvI7WPWc6+bvaaUTYG7VZVi1C4UvAiAg3aa86Nh2APOAH16+eg5HLDsGf0DhI2jV20FHGmgiIg=="}]},"_npmUser":{"name":"abhijith_213-","email":"abhijithani007@gmail.com"},"directories":{},"maintainers":[{"name":"abhijith_213-","email":"abhijithani007@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-file-magic-number-checker_1.0.6_1691507543258_0.44393812439996205"},"_hasShrinkwrap":false},"1.0.7":{"name":"@abhijith_213-/js-file-magic-number-checker","version":"1.0.7","description":"<h1 align=\"center\">js-file-magic-number-checker</h1>","main":"index.js","scripts":{"start":"node index.js","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Abhijith"},"license":"ISC","gitHead":"4c2044eeaf8b3bf2c75259402bb13d2a0681191b","_id":"@abhijith_213-/js-file-magic-number-checker@1.0.7","_nodeVersion":"16.17.1","_npmVersion":"9.1.2","dist":{"integrity":"sha512-0fR3N1Ti36QFDPYLWayXYxdP5IvhCPel8WCysZREMYHKzmaMtcQ0zMkyusdyt6pgBMW4G5kzXV5x5/H/YI5b9w==","shasum":"2b3742f47083ccd41daba9fe69b4fc5d34e22836","tarball":"https://registry.npmjs.org/@abhijith_213-/js-file-magic-number-checker/-/js-file-magic-number-checker-1.0.7.tgz","fileCount":4,"unpackedSize":32980,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAST5KcvCkM68OAFW0EZEAJyLS+HsVW/T74GVRpwgqeQIgfPue3zEi27rAzRs5IY9OTkzSmJ8eUdaY/IBMAcLZwEM="}]},"_npmUser":{"name":"abhijith_213-","email":"abhijithani007@gmail.com"},"directories":{},"maintainers":[{"name":"abhijith_213-","email":"abhijithani007@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-file-magic-number-checker_1.0.7_1691508981349_0.9857035989454908"},"_hasShrinkwrap":false},"1.1.0":{"name":"@abhijith_213-/js-file-magic-number-checker","version":"1.1.0","description":"<h1 align=\"center\">js-file-magic-number-checker</h1>","main":"index.js","scripts":{"start":"node index.js","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Abhijith"},"license":"ISC","gitHead":"4c2044eeaf8b3bf2c75259402bb13d2a0681191b","_id":"@abhijith_213-/js-file-magic-number-checker@1.1.0","_nodeVersion":"16.17.1","_npmVersion":"9.1.2","dist":{"integrity":"sha512-6lzXK66ETYB01xDFhiXpJ0Mc7LYcMgT/st8J5HX6rSeskXyZeo56cEPsHXn+Bk9PVHe84hOhM04+tSNqbpsplQ==","shasum":"69fc7e903c3e911e6bba746cfbb86260a61c5efa","tarball":"https://registry.npmjs.org/@abhijith_213-/js-file-magic-number-checker/-/js-file-magic-number-checker-1.1.0.tgz","fileCount":4,"unpackedSize":32980,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE1ge68EO0/maHIbKex7xGpwUVbPFfMQQEoTNVtConrGAiA2YAZN2pcGOsK6zrCFN576+2483OPat/rdzk5lZKll3w=="}]},"_npmUser":{"name":"abhijith_213-","email":"abhijithani007@gmail.com"},"directories":{},"maintainers":[{"name":"abhijith_213-","email":"abhijithani007@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-file-magic-number-checker_1.1.0_1691509525307_0.33567573405666185"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-08T12:15:51.144Z","1.0.0":"2023-08-08T12:15:51.437Z","modified":"2023-08-08T15:45:25.637Z","1.0.1":"2023-08-08T12:19:09.677Z","1.0.2":"2023-08-08T12:36:28.528Z","1.0.3":"2023-08-08T14:59:35.575Z","1.0.4":"2023-08-08T15:03:05.252Z","1.0.5":"2023-08-08T15:09:53.591Z","1.0.6":"2023-08-08T15:12:23.564Z","1.0.7":"2023-08-08T15:36:21.656Z","1.1.0":"2023-08-08T15:45:25.459Z"},"maintainers":[{"name":"abhijith_213-","email":"abhijithani007@gmail.com"}],"author":{"name":"Abhijith"},"license":"ISC","readme":"\n\n<h1 align=\"center\">js-file-magic-number-checker</h1>\n\n<p align=\"center\">\n  A lightweight utility package to determine the file type using its magic number (file signature) in a React application.\n</p>\n\n<div align=\"center\">\n  <a href=\"https://www.npmjs.com/package/@abhijith_213-/js-file-magic-number-checker\">\n    <img alt=\"npm\" src=\"https://img.shields.io/npm/v/@abhijith_213-/js-file-magic-number-checker.svg?color=brightgreen\">\n  </a>\n  <a href=\"https://github.com/abhijith-sys\">\n    <img alt=\"GitHub\" src=\"https://github.com/abhijith-sys.svg?color=blue\">\n  </a>\n</div>\n\n<div align=\"center\">\n  <sub>Built by\n  <a href=\"https://github.com/your-username\">Abhijith</a></sub>\n</div>\n\n<br>\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Functions](#functions)\n\n\n## Functions\nFunctions\ngetFileType(fileSignature: string): string\n\nReturns the corresponding file type for a given magic number (file signature).\ngetFileTypeFromEvent(event: Event): Promise<string>\n\nReturns a promise that resolves to the detected file type from a file input change event.\n## Installation\n\n```sh\nnpm install @abhijith_213-/js-file-magic-number-checker\n\nUsage\n\n    Import the necessary functions:\n\njavascript\n\nimport { getFileTypeFromEvent } from '@abhijith_213-/js-file-magic-number-checker';\n\n    Use the getFileTypeFromEvent function to determine the file type from a file input change event:\n\njavascript\n\nimport React, { useState } from 'react';\nimport { getFileTypeFromEvent } from '@abhijith_213-/js-file-magic-number-checker';\n\nfunction App() {\n  const [fileType, setFileType] = useState('');\n\n  const handleFileChange = async (event) => {\n    const fileType = await getFileTypeFromEvent(event);\n    setFileType(fileType);\n  };\n\n  return (\n    <div>\n      <h1>File Magic Number Checker</h1>\n      <input type=\"file\" onChange={handleFileChange} />\n      {fileType && <p>Detected File Type: {fileType}</p>}\n    </div>\n  );\n}\n\nexport default App;\n\n","readmeFilename":"README.md","description":"<h1 align=\"center\">js-file-magic-number-checker</h1>"}