Git Product home page Git Product logo

jquery-dump-plugin's Introduction

jquery-dump-plugin

Showing dump result in a pop-up window makes you available to:

  • search for a needed string using browser search functionality
  • save result and keep it as a reference
  • execute parameter-less inner functions
  • manage dumps of multiple objects as pages
  • use it in mobile development

Example

// dump navigator properties
$.dump(
  window.navigator,  /* any object to dump */
  1,                 /* optional dump depth, default: 2 */
  "window.navigator" /* optional label */
);

// dump element selected by the jQuery selector
$("#element").dump();

// same as
$.dump($("#element"), 2, "(#element)");

// this may be used to disable all following function calls
$.dump("off");

Features

  • multiple object dumping due to asynchronous nature of window.open()
  • if detected that pop-up is blocked, then dump content may be shown in same window
  • managed dump depth via function parameter (default: 2)
  • option to continue explore the dump if object property nesting exceeds the dump depth
  • object properties sorted in alphabetical order
  • collapse/expand nested objects
  • using dump depth with collapsible interface eliminates cyclic object reference mess
  • build-in syntax highlight for common JavaScript data types
  • clicking on the property name displays alert box with full property path, use Ctrl+C to copy to clipboard
  • clicking on the function name executes it (parameters not handled) and displays result in another pop-up, in case of exception, exception wrapper will be shown
  • if JavaScript engine permits - total number of accepted by function arguments will be shown
  • if JavaScript engine denies read access to the property value - exception message is shown alongside property name

Note

  • browser should allow popups
  • variable __jqdump__ exposed to the DOM after first dump call

jquery-dump-plugin's People

Contributors

zendive avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.