renaissance appendHTML adapter
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) })
Append html
to node
and run cb
, if present
- Build with
npm run build
- Test with
npm run test
See CONTRIBUTING
See CREDITS
MIT (c) 2017 - 2023 frncsdrk and contributors