0.1.1 • Published 1 year ago

@pearjs/bundle v0.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

@pearjs/bundle

Application bundle format for :pear:.js, inspired by https://github.com/electron/asar.

npm i @pearjs/bundle

Format

[#!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.

License

Apache-2.0

0.1.0

1 year ago

0.1.1

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago