ar
A Node library for reading Unix archive files.
Usage
var ar = fs = path = ; // Extracts all of the files in "some_archive.a" to the folder "./output".var outputDir = "./output";if !fs fs; var archive = fs;var files = archive;for var i = 0; i < fileslength; i++ var file = filesi; fs;
Status
- Supports the BSD variant of the common archive format, which is used by BSD
ar
and Debian packages.- For some reason, GNU
ar
from GNU binutils (at least from Mac Homebrew) also uses the BSD format.
- For some reason, GNU
- Does not support AIX (big), AIX (small), GNU
ar
, and other archive variants. If you want support for alternative formats, please make your case in a GitHub issue, or implement it yourself in a PR!