Exciting release!Introducing "safe npm". Learn more โ†’
Socket
Log inDemoInstall

@pearjs/bundle

Package Overview
Dependencies
0
Maintainers
4
Versions
18
Issues
File Explorer

Advanced tools

@pearjs/bundle

Application bundle format for ๐Ÿ.js

    0.1.1latest
    GitHub

Version published
Maintainers
4
Weekly downloads
30
decreased by-61.04%

Weekly downloads

Readme

Source

@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

FAQs

Last updated on 10 Mar 2023

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.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc