renaissance-append-html
v0.2.10
Published
renaissance append html adapter
Downloads
11
Maintainers
Readme
renaissance-append-html
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