renaissance-append-html

0.2.10 • Public • Published

renaissance-append-html

Test Status

renaissance appendHTML adapter

Usage

const { r } = require('renaissance')
const AppendHtmlAdapter = require('renaissance-append-html')
const adapter = r.registerAdapter('appendHTML', AppendHtmlAdapter)

adapter.appendHTML('<p>appendHTML</p>', document.getElementsByTagname('body')[0], function(children) { console.log(children) })
// OR
r.adapters.appendHTML.appendHTML('<p>appendHTML</p>', document.getElementsByTagname('body')[0], function(children) { console.log(children) })

API

adapter.appendHTML({string} html, {object} node, {function} cb)

Append html to node and run cb, if present

Development

  • Build with npm run build
  • Test with npm run test

Contributing

See CONTRIBUTING

Credits

See CREDITS

License

MIT (c) 2017 - 2023 frncsdrk and contributors

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i renaissance-append-html

    Weekly Downloads

    3

    Version

    0.2.10

    License

    MIT

    Unpacked Size

    7.12 kB

    Total Files

    10

    Last publish

    Collaborators

    • frncsdrk