
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@toeverything/file-type
Advanced tools
@toeverything/file-typeimport { readFile } from 'node:fs'
import { FileType } from '@toeverything/file-type'
const fileType = new FileType(await readFile('path/to/file.jpg'))
console.log(fileType.mime()) // 'application/image/jpeg'
console.log(fileType.ext()) // 'jpg'
βββββββββββ¬βββββββββββββββββββββββ¬ββββββββββββββ¬βββββββββββββββββββββ¬βββββββββββ¬ββββββββββ
β (index) β Task Name β ops/sec β Average Time (ns) β Margin β Samples β
βββββββββββΌβββββββββββββββββββββββΌββββββββββββββΌβββββββββββββββββββββΌβββββββββββΌββββββββββ€
β 0 β '@toeverything/file-type' β '1,505,155' β 664.3832625987645 β 'Β±2.22%' β 752578 β
β 1 β 'file-type' β '663,435' β 1507.3055818495407 β 'Β±0.36%' β 331718 β
βββββββββββ΄βββββββββββββββββββββββ΄ββββββββββββββ΄βββββββββββββββββββββ΄βββββββββββ΄ββββββββββ
FAQs
Guess the file-type of a Uint8Array
We found that @toeverything/file-type demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.