Hacker News new | past | comments | ask | show | jobs | submit login
Cross-Zip: Cross-platform .zip file creation (github.com/feross)
2 points by _kush on April 16, 2016 | hide | past | favorite | 1 comment



This uses Node to call out to either "powershell.exe" (if on win32) or "zip". It assumes the correct executable can be found on the path. It also assumes the directory name does not contain a space or shell metacharacter.

For a more portable cross-platform .zip file creation, use Python's built-in "zipfile" module. There is even a simple command-line interface, which can be used like:

   python -m zipfile -l $FILENAME




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: