@pearjs/bundle
Advanced tools
Weekly downloads
Readme
Application bundle format for :pear:.js, inspired by https://github.com/electron/asar.
npm i @pearjs/bundle
[#!hashbang]
<header length><header><...files>
The header length is an integer literal denoting the total length of the header. The header itself is a JSON string literal of header length bytes and has the following format:
{
"version": 0,
"main": "<path>" | null,
"imports": {
"<from>": "<to>"
},
"files": {
"<path>": {
"offset": number,
"length": number
}
}
}
For each <path>
in files
, offset
provides the byte offset to the file after the header and length
provides the byte length of the file.
The bundle may optionally be prefixed with a hashbang, #!
, for use with script interpreters. The hashbang is ignored during parsing.
Apache-2.0
FAQs
Application bundle format for 🍐.js
The npm package @pearjs/bundle receives a total of 27 weekly downloads. As such, @pearjs/bundle popularity was classified as not popular.
We found that @pearjs/bundle demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.