JSPM

@fregdee/lsx

0.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q30894F
  • License MIT

Enhanced ls command with better visibility

Package Exports

    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 (@fregdee/lsx) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    lsx

    Enhanced ls command with better file and directory visibility.

    Features

    • 📁 Clear file type indicators: [FILE] and [DIR]
    • 📅 Sorted by modification time (oldest first)
    • 📏 Human-readable file sizes (KB, MB, GB)
    • 🔍 Clean, easy-to-read output format
    • 👁️ Excludes hidden files by default

    Installation

    npm install -g @fregdee/lsx

    Usage

    # List current directory
    lsx
    
    # List specific directory
    lsx /path/to/directory

    Example Output

    [FILE] 2025-06-05 11:16     492B package.json
    [FILE] 2025-06-05 11:16     421B tsconfig.json
    [DIR]  2025-06-05 11:25        - src
    [FILE] 2025-06-05 11:26    8.5KB package-lock.json
    [DIR]  2025-06-05 11:26        - node_modules
    [DIR]  2025-06-05 11:26        - dist

    Output Format

    Each line shows:

    • [TYPE] - File type (FILE or DIR)
    • Last modified date and time (YYYY-MM-DD HH:MM)
    • File size (human-readable format, - for directories)
    • File/directory name

    Requirements

    • Node.js ≥ 16.0.0

    License

    MIT