@stefanobartoletti/nuxt-social-share

中文文档
3.3.1发布于 2026/11/02MITTypeScriptES Module构建来源已验证

Simple Social Sharing for Nuxt

原始使用文档
文档目录4 节
  1. 🌟 Features
  2. 📖 Documentation
  3. 🤝 Contributing
  4. 📝 License

Nuxt Social Share

npm version npm downloads License Nuxt

Simple social sharing for your Nuxt Sites

Documentation | Release Notes

🌟 Features

  • Provides a minimal config <SocialShare> component
  • The component is unstyled by default for easy integration in any design
  • Optional styled version, that can still be further customized
  • A useSocialShare composable is exposed, to provide even more flexibility if needed
  • Many major social networks supported

📖 Documentation

The full docs are available in a dedicated documentation website

🤝 Contributing

[!NOTE] If you want to contribute you can start by reading the Contributing guidelines.

[!NOTE] Contributions to add more networks are welcome, but keep in mind that PR will be accepted only for networks that have a documentation available in English among other languages.

  • Clone this repository
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run pnpm dev:prepare to generate type stubs.
  • Use pnpm dev to start playground in development mode.
  • Lint any new edit by running pnpm lint --fix

📝 License

MIT

© 2023-present Stefano Bartoletti

版本与发布记录

@stefanobartoletti/nuxt-social-share 共发布 47 个版本,首次发布于 2023/11/02;过去 12 个月发布了 11 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.3.1latest2026/11/02今天
3.3.02026/10/1915 天前
3.2.12026/08/252 个月前
3.2.02026/07/293 个月前
3.1.02026/07/073 个月前
3.0.32026/05/285 个月前

其他发布通道:dev → 0.7.0-dev.0,beta → 1.0.0-beta.1。

关于 @stefanobartoletti/nuxt-social-share 的常见问题

@stefanobartoletti/nuxt-social-share 是什么?

简单的社交分享next

如何安装 @stefanobartoletti/nuxt-social-share?

在项目目录运行 npm install @stefanobartoletti/nuxt-social-share,或使用 pnpm add / yarn add / bun add。

@stefanobartoletti/nuxt-social-share 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@stefanobartoletti/nuxt-social-share 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@stefanobartoletti/nuxt-social-share 可以商用吗?

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

@stefanobartoletti/nuxt-social-share 还在维护吗?

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