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

You Might Also Like
See Everything. Miss Nothing. 30-day free trial Icon
See Everything. Miss Nothing. 30-day free trial

Don’t let IT surprises catch you off guard. PRTG keeps an eye on your whole network, so you don’t have to.

As the IT backbone of your company, you can’t afford to miss a thing. PRTG monitors every device, application, and connection - on-premise and in the cloud. You get clear dashboards, smart alerts, and mobile access, so you’re always in control, wherever you are. No more guesswork or manual checks. PRTG’s powerful automation and easy setup mean you spend less time firefighting and more time moving your business forward. Discover how simple and reliable IT monitoring can be.
Try PRTG 30-day full access trial
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