Installation
npm install --save @types/magic-number
Summary
This package contains type definitions for magic-number (https://github.com/stpettersens/node-magic-number).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/magic-number.
index.d.ts
export function detectFile(file: string): string;
export function detectType(data: any): string;
Additional Details
- Last updated: Mon, 06 Jan 2025 1826 GMT
- Dependencies: none
Credits
These definitions were written by Sam Saint-Pettersen.