1.5.1 • Published 7 years ago

asar-fs v1.5.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

asar-fs

Build Status Coverage Statusdependencies Status npm version

A rudimentary fs and module monkeypatch to support loading files and modules from an atom/asar archive.

Installation

npm i asar-fs

Usage

Example:

  const AsarFs = require('asar-fs');
  let asarFs = new AsarFs(__dirname + '/app.asar').patch();

constructor(archive)

This initializes the asar-fs instance, and will bind to the specified archive.

patch()

This will monkeypatch built-in modules for asar reading capabilities. Modules can be required from the archive, as well as fs readFile and readFileSync access.

unpatch()

This will remove any installed monkeypatches, restoring all modules back to their original state.

Related Projects

1.5.1

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago