@alpine-collective/toolkit-scroll

中文文档
1.0.2发布于 2022/11/15MITESM + CJS零依赖近 30 天下载 2597

A magic helper to generate to scroll the viewport in Alpine.Js

原始使用文档
文档目录3 节
  1. Usage
  2. Installation
  3. NPM

$scroll

GitHub tag (latest by date) npm bundle size

A magic helper to generate to scroll the viewport in Alpine.Js

Usage

Coming soon

Installation

Include the following <script> tag in the <head> of your document, before Alpine:

<script src="https://unpkg.com/@alpine-collective/[email protected]/dist/cdn.min.js" defer></script>

or

<script src="https://cdn.jsdelivr.net/npm/@alpine-collective/[email protected]/dist/cdn.min.js" defer></script>

NPM

If you would like to bundle the plugin yourself, install it via NPM:

npm install @alpine-collective/toolkit-scroll --save-dev

You can then register the plugin with Alpine:

import Alpine from 'alpinejs'
import Scroll from '@alpine-collective/toolkit-scroll'

Alpine.plugin(Scroll)

Alpine.start()

版本与发布记录

@alpine-collective/toolkit-scroll 共发布 3 个版本,首次发布于 2021/07/26;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.0.2latest2022/11/153 年前
1.0.12022/11/103 年前
1.0.02021/07/265 年前

关于 @alpine-collective/toolkit-scroll 的常见问题

@alpine-collective/toolkit-scroll 是什么?

A magic helper to generate to scroll the viewport in Alpine.Js

如何安装 @alpine-collective/toolkit-scroll?

在项目目录运行 npm install @alpine-collective/toolkit-scroll,或使用 pnpm add / yarn add / bun add。

@alpine-collective/toolkit-scroll 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/alpine-collective__toolkit-scroll 是否存在。

@alpine-collective/toolkit-scroll 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@alpine-collective/toolkit-scroll 可以商用吗?

@alpine-collective/toolkit-scroll 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@alpine-collective/toolkit-scroll 的下载量有多少?

根据 npm 官方下载统计,@alpine-collective/toolkit-scroll 在 2026/10/06 – 2026/11/04 这 30 天内被下载 2,597 次,日均约 87 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@alpine-collective/toolkit-scroll 还在维护吗?

最新版本 1.0.2 发布于 2022/11/15(3 年前);至今共发布 3 个版本,其中过去 12 个月发布了 0 个;首次发布于 2021/07/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。