
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
node-file-inspector
Advanced tools
A lightweight Node.js utility to analyze files — get readable size, MIME type, and metadata with timestamps.
A lightweight node js utility to analyze files - get readable size , MIME type , and also can get the meta data of file along with timestamps easily.
npm install file-inspector
import { getReadableSize, getMimeType, analyzeFile } from 'node-file-inspector';
const filepath = "path/to/your/file.js";
const bytes = 2048;
const info = analyzeFile(filepath); // returns metadata object
const fileType = getMimeType(filepath); // returns MIME type
const fileSize = getReadableSize(bytes); // returns readable size string
console.log(info);
{
"fileSize": 1512,
"readableSize": "1.48 KB",
"extension": "js",
"mimeTypes": "application/javascript",
"createdBy": "04/30/2025 12:15:43 GMT+0530 (India Standard Time)",
"lastModifiedBy": "04/30/2025 12:15:43 GMT+0530 (India Standard Time)"
}
FAQs
A lightweight Node.js utility to analyze files — get readable size, MIME type, and metadata with timestamps.
We found that node-file-inspector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.