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
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
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