JSPM

file-metadata-lookup

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q22131F
  • License MIT

Cross-platform file metadata retriever using TypeScript.

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:
    • mdls on macOS
    • stat on Linux
    • Get-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);
})();

License

MIT