JSPM

@shreyash1601/oopsify

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

    Play meme sounds automatically on terminal errors 🔊

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

      Readme

      🔊 Oopsify CLI

      Oopsify Logo

      Let your failures make the noise!!


      🚀 Features

      • 🔊 Play meme sounds on terminal errors automatically
      • 🎧 Choose your favorite meme sound
      • 🎯 Interactive CLI with arrow-key selection
      • 🎨 Styled error message with emoji
      • ⚡ Lightweight and fun developer utility

      📦 Installation

      npm install -g @shreyash1601/oopsify-cli

      ⚙️ Setup (Required)

      oopsify setup

      👉 Restart your terminal after setup.


      💥 Automatic Mode

      After setup, any failed command will trigger:

      • 🔊 Meme sound
      • 😵 Styled error message

      🎧 Usage

      List available sounds

      oopsify list

      Set default sound

      oopsify set

      Play sound manually

      oopsify

      ⚠️ Compatibility

      Currently supported environment:

      • Windows Terminal / VS Code Terminal
      • PowerShell (required)

      ❌ Not supported (yet)

      • macOS Terminal
      • Linux shells
      • CMD (Command Prompt)
      • Git Bash

      👉 Support for macOS and Linux is planned in upcoming versions 🚀


      🛠️ Troubleshooting

      🔸 Sound not playing

      • Ensure system audio is working

      • Try opening .wav file manually

      • Ensure .wav format:

        • PCM encoding
        • 16-bit
        • 44.1 kHz

      🔸 oopsify command not working

      npm install -g @shreyash1601/oopsify-cli
      • Ensure npm global path is added to system PATH

      🔸 Error detection not triggering

      oopsify setup
      • Restart terminal
      • Ensure using PowerShell (not CMD)

      🔸 PowerShell not detected

      Install PowerShell:

      👉 https://aka.ms/powershell-release?tag=stable

      Verify:

      pwsh

      🔸 Setup not applied

      echo $PROFILE

      Ensure it contains the oopsify setup block.


      🧠 How it works

      Oopsify hooks into the PowerShell prompt and detects failed commands using:

      • $?
      • $LASTEXITCODE
      • $Error

      When an error is detected → sound is triggered.


      📁 Project Structure

      oopsify-cli/
        bin/
          index.js
        sounds/
          *.wav
        assets/
          logo.png

      🚀 Roadmap

      • macOS support
      • Linux support
      • Random sound mode
      • Volume control
      • Custom sound upload

      👨‍💻 Author

      Shreyash Shrivastava


      📄 License

      MIT License