Asar is a simple extensive archive format, it works like tar that concatenates all files together without compression while having random access support. You can pass in a transform option, which is a function, that either returns nothing or a stream. Transform. The latter will be used on files that will be in the .asar file to transform them. There is also an unofficial grunt plugin to generate asar archives at bwin/grunt-asar. Asar uses Pickle to safely serialize binary value to file, there is also a node.js binding of Pickle class. The header_size and header are serialized with Pickle class, and header_size's Pickle object is 8 bytes. offset and size record the information to read the file from the archive, the offset starts from 0 so you have to manually add the size of header_size and header to the offset to get the real offset of the file.

Features

  • Support random access
  • Use JSON to store files' information
  • Very easy to write a parser
  • Requires Node 10 or later
  • Exclude multiple resources from being packed
  • Use programatically

Project Samples

Project Activity

See All Activity >

Categories

Data Formats

License

MIT License

Follow asar

asar Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of asar!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Data Formats Software

Registered

2022-05-04