insert-html

0.0.1 • Public • Published

Insert HTML

Use a promise and requestAnimationFrame to insert HTML

Installation

  1. npm install insert-html

Usage

    var InsertHTML = require('insert-html');
    new InsertHTML('#selector', '<div>html</div>', 'html')
        .then(
            function(){
                // html was inserted
            }
        );

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    551
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    551

Package Sidebar

Install

npm i insert-html

Weekly Downloads

89

Version

0.0.1

License

none

Last publish

Collaborators

  • dankantor