Eruda

repository·master·Indexed 12 days ago

https://github.com/liriliri/eruda

A mobile browser console that provides developer tools, similar to a Chrome DevTools interface, directly within mobile web browsers. Version 3.4.3 can be initialized via eruda.init() after installation through npm or a CDN.

Tokens
340
Snippets
3
Records
3
Agent score
48%

What's inside Eruda

  1. Initialize Eruda in your web page

    master

    After including the Eruda script, you must call eruda.init() to activate the console for mobile browsers. You can include the script either from your local node_modules or via a CDN like jsDelivr.

    <!-- Using local node_modules -->
    <script src="node_modules/eruda/eruda.js"></script>
    <script>eruda.init();</script>
    
    <!-- OR using jsDelivr CDN -->
    <script src="https://cdn.jsdelivr.net/npm/eruda"></script>
    <script>eruda.init();</script>
  2. Import Eruda via CommonJS

    master

    You can import the Eruda library using require. The package exports the Eruda instance as the default export. Depending on your environment's module resolution, you may need to access the .default property.

    const eruda = require('eruda');
    // or if using the direct export structure:
    const eruda = require('eruda').default;