file-metadata-lookup
v1.0.0
Published
Cross-platform file metadata retriever using TypeScript.
Downloads
82
Maintainers
Keywords
Readme
File Metadata Lookup
File Metadata Lookup
is a cross-platform utility to retrieve file metadata using native system tools on macOS, Linux, and Windows. It is written in TypeScript and provides an easy-to-use API for retrieving metadata in different environments.
Features
- Retrieves file metadata using native tools:
mdls
on macOSstat
on LinuxGet-ItemProperty
on Windows (PowerShell)
- Modular structure for easy extension.
- TypeScript support.
Installation
npm install file-metadata-lookup
Usage
import { fileMetadata } from 'file-metadata-lookup';
(async () => {
const metadata = await fileMetadata('test.txt');
console.log(metadata);
})();