Package Exports
- file-metadata-lookup
- file-metadata-lookup/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (file-metadata-lookup) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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:
mdlson macOSstaton LinuxGet-ItemPropertyon Windows (PowerShell)
- Modular structure for easy extension.
- TypeScript support.
Installation
npm install file-metadata-lookupUsage
import { fileMetadata } from 'file-metadata-lookup';
(async () => {
const metadata = await fileMetadata('test.txt');
console.log(metadata);
})();