JSPM

nanomount

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 89
  • Score
    100M100P100Q72093F

Mount a DOM tree on a target node

Package Exports

  • nanomount

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nanomount) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

nanomount stability

npm version build status test coverage downloads js-standard-style

Mount a DOM tree on a target node.

Usage

var nanomount = require('nanomount')
var html = require('bel')

var tree = html`
  <body>
    <h1>hello planet</h1>
  </body>
`

nanomount(document.body, tree)

API

nanomount(targetNode, newNode)

Mount a DOM tree on target node.

License

MIT