Skip to content

Instantly share code, notes, and snippets.

@Elschnagoo
Created October 12, 2025 16:02
Show Gist options
  • Select an option

  • Save Elschnagoo/fae3bb2713803e567a604f732fe3db90 to your computer and use it in GitHub Desktop.

Select an option

Save Elschnagoo/fae3bb2713803e567a604f732fe3db90 to your computer and use it in GitHub Desktop.
Proxy Script for @aikidosec/safe-chain to used in Jetbrains IDE
#!/usr/bin/env zsh
# npm-proxy - A simple wrapper script to proxy all arguments to npm
# Optional: Log the command for debugging
echo "Running npm with arguments: $@" >&2
source ~/.safe-chain/scripts/init-posix.sh # Safe-chain Zsh initialization script
# Forward all arguments to npm
npm "$@"
@Elschnagoo
Copy link
Author

Simple script to use the @aikidosec/save-chain package in Jetbrains

  1. Follow the default installation from save-chain package

https://www.npmjs.com/package/@aikidosec/safe-chain

  1. Create a new file in my case ~/Scripts/npm-proxy (file)
  2. Make it executable chmod +x ~/Scripts/npm-proxy
  3. Setup Jetbrains Settings > Languages & Grameworks > Node.js set the Package Manager to ~/Scripts/npm-proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment