Skip to content
Browserify transform for libdweb
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
README.md
libdwebify.js
package-lock.json
package.json

README.md

libdwebify

This is a Browserify transform, which replaces some node libraries with libdweb polyfills. This makes your node networking stack run in Firefox!

Current replaced modules:

  • net
  • dgram
  • dns

Install

npm install --save-dev @sammacbeth/libdwebify

Usage

Pass it to browserify with either -t to just replace in top-level files, or -g to also replace imports in dependencies:

browserify -e my_app.js -g @sammacbeth/libdwebify > bundle.js

Note, you will still have to add the libdweb experimental APIs in your extension manifest.

License

MIT

You can’t perform that action at this time.