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
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
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