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

0.0.1-alpha.1 • Public • Published

Carob

封装一些浏览器端常用的 API。

文档

安装

pnpm install carob

使用

import { prepend, toElement, getScrollbarWidth } from 'carob'

const app = toElement(`
  <div class="app">
    <button id="button">Hi</button>
  </div>
`)

prepend(document.body, app)

getScrollbarWidth() // => 17px

Package Sidebar

Install

npm i cherry-dom

Weekly Downloads

1

Version

0.0.1-alpha.1

License

MIT

Unpacked Size

23.7 kB

Total Files

42

Last publish

Collaborators

  • chennings