jquery-html

0.1.5 • Public • Published

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

/jquery-html/

    Package Sidebar

    Install

    npm i jquery-html

    Weekly Downloads

    1

    Version

    0.1.5

    License

    none

    Last publish

    Collaborators

    • aaaristo