Neutralize Pesky Miscreants
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    jquery-htmlpublic

    jquery-html Build Status

    A function to get a window and the $ out of an HTML source

    Getting Started

    Install the module with: npm install jquery-html

    var jquery = require('jquery-html');
     
    jquery.create(function(window,$,free)
    {
       $('body').append('ciao!');
       console.log(jquery.source(window));
       free();
    });
     

    or try with your html

    var jquery = require('jquery-html');
     
    jquery.create('<!DOCTYPE html>\n<html><body>ciao!</body></html>',
    function(window,$,free)
    {
       $('body').append('<div>world</div>');
       console.log(jquery.source(window));
       free();
    });
     

    License

    Copyright (c) 2013 Andrea Amerigo Aristodemo Gariboldi
    Licensed under the MIT license.

    Bitdeli Badge

    Keywords

    none

    install

    npm i jquery-html

    Downloadsweekly downloads

    7

    version

    0.1.5

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar