Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: sourceHandler
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (17 sloc) 0.8 kB

JSAPI.info

A JS library source inspector. Libraries are specified in libs.json, e.g.

{
    "jquery": {
        "url": "https://ajax.googleapis.com/ajax/libs/jquery/{VERSION}/jquery.js",
        "default_version": "1.6.4",
        "versions": ["1", "1.1", "1.2", "1.3", "1.3.2", "1.4", "1.5", "1.6", "1.6.2", "1.6.4"],
        "get_real_version": "v(\\d+\\.\\d+\\.\\d+)",
        "look_in": ["jQuery.fn", "jQuery"],
        "mutate_names": [
            ["^\\$(?=\\.)", "jQuery"],
            ["^jQuery\\.prototype", "jQuery.fn"]
        ]
    } // ,...
}

Given the above configuration, we can now access /jquery/[VERSION/]METHOD_NAME in our browser. JSAPI.info will only source the jQuery source file remotely (from googleapis) if it hasn't already cached it locally.

THIS IS STILL UNDER DEVELOPMENT: Live @ jsapi.info.

Jump to Line
Something went wrong with that request. Please try again.