{
  "_id": "ar-async",
  "maintainers": [
    {
      "name": "jaycanuck",
      "email": "jason.robitaille@lge.com"
    }
  ],
  "keywords": [
    "ar"
  ],
  "dist-tags": {
    "latest": "0.1.4"
  },
  "author": {
    "name": "Jason Robitaille",
    "email": "jason@canuckcoding.ca"
  },
  "_rev": "12-baf1c138cae0020075b8b26b8255a8a8",
  "description": "Asynchronously read and write Unix archive files.",
  "readme": "ar\n====\n\nA Node library for asynchronously reading and writing [Unix archive files](http://en.wikipedia.org/wiki/Ar_%28Unix%29). Currents supprts basic `ar` format, as well as BSD and GNU variants.\n\n###ArReader\n```javascript\nvar ar = require('ar'),\n    fs = require('fs'),\n    path = require('path');\n\n// extracts all of the files in \"some_archive.a\" to the folder \"./output\".\nvar outputDir = \"./output\";\nif (!fs.existsSync(outputDir)) fs.mkdirSync(outputDir);\n\nvar reader = new ar.ArReader(\"some_archive.a\");\nreader.on(\"open\", function() {\n\t// archive opened\n});\nreader.on(\"entry\", function(entry, next) {\n\t// entry is an instance of ArEntry\n\tvar name = entry.fileName();\n\tentry.fileData()\n\t\t.pipe(fs.createWriteStream(name))\n\t\t.on(\"finish\", next);\t\t\n});\nreader.on(\"error\", function(err) {\n\t// archive reading error\n});\nreader.on(\"end\", function() {\n\t// archive parsing ended\n});\nreader.on(\"close\", function() {\n\t// archive closed\n});\n```\n\nArReader automatically detects and handles BSD and GNU variant formats. All events are optional, so you only have to listen for the ones you want.\n\n###ArWriter\n```javascript\nvar ar = require('ar'),\n    fs = require('fs'),\n    path = require('path');\n\n// write files into a new ar archive at \"some_archive.a\"\n// in the case, specifies gnu variant format for long filenames\nvar writer = new ar.ArWriter(\"./some_archive.a\", {variant:\"gnu\"});\nwriter.writeEntries([\n\t\t\"./some_file\",\n\t\t\"./some_other_file\",\n\t\t\"./yet_another_file\"\n\t], function() {\n\t\t// optional callback after completion\n\t});\nwriter.on(\"open\", function() {\n\t// archive opened\n});\nwriter.on(\"entry\", function(entry) {\n\t// entry is an instance of ArEntry\n\t// signifies an entry has been written\n\t// unlike ArReader, there is no next function\n});\nwriter.on(\"error\", function(err) {\n\t// archive writing error\n});\nwriter.on(\"finish\", function() {\n\t// archive writing ended and closed\n});\n```\n\nArWriter by default will truncate filenames at 16 bytes long. For long file names, specify a variant format, like done above. Currently \"GNU\" and \"BSD\" are supported. Additionally, you can specify \"uid\", \"gid\", and \"mode\" number values in the options json; they will override the values for each file written. All events are optional, so you only have to listen for the ones you want.\n\n###ArEntry\nSee ar.js for inline ArEntry documention, but here are the key APIs\n\n* [ArEntry].fileName() - String - Filename of the file in the entry\n* [ArEntry].fileSize() - Number - Number of bytes the file takes up\n* [ArEntry].fileData() - Stream - Readable stream for file data\n* [ArEntry].date() - Date - Last modified date of the file\n* [ArEntry].uid() - Number - UID of the file\n* [ArEntry].gid() - Number - GID of the file\n* [ArEntry].mode() - Number - File mode\n\n###License\nLicensed under the MIT License (MIT)\n\nnode-ar-async Copyright (c) 2014 Jason Robitaille.\nhttps://github.com/JayCanuck/node-ar-async\n\nBased on, and including code from, from node-ar, Copyright (c) 2013 John Vilk.\nhttps://github.com/jvilk/node-ar\n\n",
  "repository": {
    "type": "git",
    "url": "https://github.com/JayCanuck/node-ar-async.git"
  },
  "bugs": {
    "url": "https://github.com/JayCanuck/node-ar-async/issues"
  },
  "versions": {
    "0.1.0": {
      "name": "ar-async",
      "description": "Asynchronously read and write Unix archive files.",
      "version": "0.1.0",
      "homepage": "https://github.com/JayCanuck/node-ar-async",
      "author": {
        "name": "Jason Robitaille",
        "email": "jason@canuckcoding.ca"
      },
      "licenses": [
        {
          "type": "MIT",
          "url": "https://github.com/JayCanuck/node-ar-async/blob/master/LICENSE"
        }
      ],
      "main": "ar.js",
      "repository": {
        "type": "git",
        "url": "https://github.com/JayCanuck/node-ar-async.git"
      },
      "gitHead": "f4ced5922e9e1a222ba212d9165029a672e5f4f4",
      "bugs": {
        "url": "https://github.com/JayCanuck/node-ar-async/issues"
      },
      "_id": "ar-async@0.1.0",
      "scripts": {},
      "_shasum": "5029208cf1eeb680a294f6363164d9e87403bf1c",
      "_from": "node-ar-async",
      "_npmVersion": "1.4.28",
      "_npmUser": {
        "name": "jaycanuck",
        "email": "jason.robitaille@lge.com"
      },
      "maintainers": [
        {
          "name": "jaycanuck",
          "email": "jason.robitaille@lge.com"
        }
      ],
      "dist": {
        "shasum": "5029208cf1eeb680a294f6363164d9e87403bf1c",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/ar-async/-/ar-async-0.1.0.tgz",
        "integrity": "sha512-EqGo79bAUeq4x60YV9udrEgZjUQ3U9IhCsX8kduDJdflI2BZKkpoxEC4gqzV3ud7IzdjdT3K8cyzNcpmhysieg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDGehOQVxSMOBBFzhNgj15Q4n6UKcHEk4HLZKgDsKRHwQIgUZxJXy5GwDLwYUZJ8fW8fsi2SmU6TVOyGbwHicsH0x8="
          }
        ]
      }
    },
    "0.1.1": {
      "name": "ar-async",
      "description": "Asynchronously read and write Unix archive files.",
      "version": "0.1.1",
      "homepage": "https://github.com/JayCanuck/node-ar-async",
      "author": {
        "name": "Jason Robitaille",
        "email": "jason@canuckcoding.ca"
      },
      "licenses": [
        {
          "type": "MIT",
          "url": "https://github.com/JayCanuck/node-ar-async/blob/master/LICENSE"
        }
      ],
      "main": "ar.js",
      "repository": {
        "type": "git",
        "url": "https://github.com/JayCanuck/node-ar-async.git"
      },
      "keywords": [
        "ar"
      ],
      "gitHead": "530ac30ef42aab2aefe839ecaed5f25d20f1ea0d",
      "bugs": {
        "url": "https://github.com/JayCanuck/node-ar-async/issues"
      },
      "_id": "ar-async@0.1.1",
      "scripts": {},
      "_shasum": "f9342e7ecbaef7f9f24d92dbf45d39c99ff0be56",
      "_from": "node-ar-async",
      "_npmVersion": "1.4.28",
      "_npmUser": {
        "name": "jaycanuck",
        "email": "jason.robitaille@lge.com"
      },
      "maintainers": [
        {
          "name": "jaycanuck",
          "email": "jason.robitaille@lge.com"
        }
      ],
      "dist": {
        "shasum": "f9342e7ecbaef7f9f24d92dbf45d39c99ff0be56",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/ar-async/-/ar-async-0.1.1.tgz",
        "integrity": "sha512-8uwpJJTjLfUtzh9Pj8LwSYClLcB4YDU8hVVWAEwi7iCsvybK/jeLEalw92Dc+9cZfnN7aYwqTVWXR4KNtADgJg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDLEL+keGfHN2M+tz8HYFboWCep3k+gNwVF7pX1fCm88QIhAJDmBE9H9AGamtXkavg5jBPURlz5n9XQ4x1K38QUv5TJ"
          }
        ]
      }
    },
    "0.1.2": {
      "name": "ar-async",
      "description": "Asynchronously read and write Unix archive files.",
      "version": "0.1.2",
      "homepage": "https://github.com/JayCanuck/node-ar-async",
      "author": {
        "name": "Jason Robitaille",
        "email": "jason@canuckcoding.ca"
      },
      "licenses": [
        {
          "type": "MIT",
          "url": "https://github.com/JayCanuck/node-ar-async/blob/master/LICENSE"
        }
      ],
      "main": "ar.js",
      "repository": {
        "type": "git",
        "url": "https://github.com/JayCanuck/node-ar-async.git"
      },
      "keywords": [
        "ar"
      ],
      "gitHead": "aa4ed9a282536596aaf5af8edf234ca790017291",
      "bugs": {
        "url": "https://github.com/JayCanuck/node-ar-async/issues"
      },
      "_id": "ar-async@0.1.2",
      "scripts": {},
      "_shasum": "8e891eb9bec73f35f74b4930d34d45ecb339d2c4",
      "_from": "node-ar-async",
      "_npmVersion": "1.4.28",
      "_npmUser": {
        "name": "jaycanuck",
        "email": "jason.robitaille@lge.com"
      },
      "maintainers": [
        {
          "name": "jaycanuck",
          "email": "jason.robitaille@lge.com"
        }
      ],
      "dist": {
        "shasum": "8e891eb9bec73f35f74b4930d34d45ecb339d2c4",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/ar-async/-/ar-async-0.1.2.tgz",
        "integrity": "sha512-N5VFjDnKxTJc6kMpCb9eN7QMilPNUBbY7iHOWSgH/H445m71kal4oWLoPn0Y8w5xB0eti5zFEbel5eiEJru47Q==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIDhOGAXnDRXbWSBxpq8EXjoqwVyP15vggTmEaqa7lOFbAiEAm6V9iRm/FHJ+PEeSGoJhrtbRjqrnFooY4vFEQFsyrZE="
          }
        ]
      }
    },
    "0.1.3": {
      "name": "ar-async",
      "description": "Asynchronously read and write Unix archive files.",
      "version": "0.1.3",
      "homepage": "https://github.com/JayCanuck/node-ar-async",
      "author": {
        "name": "Jason Robitaille",
        "email": "jason@canuckcoding.ca"
      },
      "licenses": [
        {
          "type": "MIT",
          "url": "https://github.com/JayCanuck/node-ar-async/blob/master/LICENSE"
        }
      ],
      "main": "ar.js",
      "repository": {
        "type": "git",
        "url": "https://github.com/JayCanuck/node-ar-async.git"
      },
      "keywords": [
        "ar"
      ],
      "gitHead": "f9e5766965ba30426f9c206942f9326ffc6cc012",
      "bugs": {
        "url": "https://github.com/JayCanuck/node-ar-async/issues"
      },
      "_id": "ar-async@0.1.3",
      "scripts": {},
      "_shasum": "2e0485c011ff57e8eb922d34d5d76b96307c1b70",
      "_from": "node-ar-async",
      "_npmVersion": "1.4.28",
      "_npmUser": {
        "name": "jaycanuck",
        "email": "jason.robitaille@lge.com"
      },
      "maintainers": [
        {
          "name": "jaycanuck",
          "email": "jason.robitaille@lge.com"
        }
      ],
      "dist": {
        "shasum": "2e0485c011ff57e8eb922d34d5d76b96307c1b70",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/ar-async/-/ar-async-0.1.3.tgz",
        "integrity": "sha512-8CK91l7Ay+T24tcfX1mBs9i42k2lV8NSuT8QnGFVVMd9IexyKs/71PDnYErekgvGKPnRRAzmnNis43isW4Kqlw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIHotgNLGXxOQKanSN+wGhC/mfHq5QmFvDKFftqqac2crAiEAitNZuPXYesNVKDcF4X2t9iX1tJfV0EReKiWeZJU1LLg="
          }
        ]
      }
    },
    "0.1.4": {
      "name": "ar-async",
      "description": "Asynchronously read and write Unix archive files.",
      "version": "0.1.4",
      "homepage": "https://github.com/JayCanuck/node-ar-async",
      "author": {
        "name": "Jason Robitaille",
        "email": "jason@canuckcoding.ca"
      },
      "licenses": [
        {
          "type": "MIT",
          "url": "https://github.com/JayCanuck/node-ar-async/blob/master/LICENSE"
        }
      ],
      "main": "ar.js",
      "repository": {
        "type": "git",
        "url": "https://github.com/JayCanuck/node-ar-async.git"
      },
      "keywords": [
        "ar"
      ],
      "gitHead": "cd5fa957b30db58d660d3f51bc64f16ab688c162",
      "bugs": {
        "url": "https://github.com/JayCanuck/node-ar-async/issues"
      },
      "_id": "ar-async@0.1.4",
      "scripts": {},
      "_shasum": "92f76d625323ac0d2a2deb899c27b10fc9cea0e0",
      "_from": "node-ar-async",
      "_npmVersion": "1.4.28",
      "_npmUser": {
        "name": "jaycanuck",
        "email": "jason@canuckcoding.ca"
      },
      "maintainers": [
        {
          "name": "jaycanuck",
          "email": "jason.robitaille@lge.com"
        }
      ],
      "dist": {
        "shasum": "92f76d625323ac0d2a2deb899c27b10fc9cea0e0",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/ar-async/-/ar-async-0.1.4.tgz",
        "integrity": "sha512-iuFSHl96gQAStEPK457rAqVX0n5CVWrnE7SPdc/yS0ixkQXRd6h9W+8TJ1IA0sqgLolIO3oudpG8jl033GAiNg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIG4Bz4EiTLscc8VvViXc7QS3P6ve1IJSqC8FolJAHd4/AiEA11gJDVCYGsTVFd200ND/whwzIFADeBQ6PeWgrg921Gc="
          }
        ]
      }
    }
  },
  "name": "ar-async",
  "time": {
    "modified": "2026-05-25T16:41:30.592Z",
    "created": "2014-11-13T07:51:17.528Z",
    "0.1.0": "2014-11-13T07:51:17.528Z",
    "0.1.1": "2014-11-15T13:16:54.395Z",
    "0.1.2": "2014-11-15T14:30:25.373Z",
    "0.1.3": "2014-11-15T14:52:58.337Z",
    "0.1.4": "2014-12-26T20:01:38.467Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/JayCanuck/node-ar-async"
}