Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rasa

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rasa

Electron's asar archive format

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

rasa

npm npm license npm downloads build status

Dependency-less asar archive implementation

Install via npm

$ npm install --save rasa

Differences

Compared to electron/asar, rasa

  • Has no dependencies
  • Has no command line interface
  • Provides error handling for all methods

TODO

  • Packing of files
  • API compatibility with asar

Usage

var rasa = require( 'rasa' )

Listing an archive's contents

var files = rasa.listPackage( 'test/data/pack.asar' )
> [ 'archive.js', 'filesystem.js', 'rasa.js' ]

Opening an archive

var archive = new rasa.Archive()
archive.open( filename, ( error ) => {
  // Do things...
  console.log( 'files', rasa.Archive.listFiles( archive.root ) )
  // Close the handle to the archive
  archive.close()
})

Reading a file

archive.readFile( 'archive.js', function( error, buffer ) {
  // ...
})

Reading directories

var ls = archive.readdir( '/' )

Streaming a file from an archive

archive.createReadStream( 'archive.js' )
  .pipe( process.stdout )

Keywords

FAQs

Package last updated on 23 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc