browze
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Browze

Minimal transpilation for testing browser modules

import execute from 'browze'
import webdriver from 'selenium-webdriver'

async function main() {
  const driver = await new webdriver.Builder().withCapabilities({ browserName: 'chrome' }).build()

  const html = await execute(
    drive,
    __filename,
    `
    import { h, render } from 'preact'
    export default function() {
      var vnode = h('div', { class: "cool" }, 'hi')
      render(vnode, document.body)
      return document.documentElement.outerHTML
    }
  `
  )
}

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i browze

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

2.73 kB

Total Files

7

Last publish

Collaborators

  • mattmueller