npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

spacingjs

v1.0.9

Published

Measure spacing between elements on webpage.

Downloads

3,968

Readme

Spacing JS

npm version GitHub Stars Github Forks GitHub Open Issues License

一個用於測量網頁元素間距離的 JavaScript 小工具,用於前端開發的流程。試試看

閱讀此文檔的其他語言版本:English, 繁體中文, 简体中文.

如何使用

  1. 在 HTML 頁面中透過 <script> 標籤加載 Spacing.js:
  • UNPKG CDN:
<script src="//unpkg.com/spacingjs" defer></script>
  • jsDelivr CDN:
<script src="//cdn.jsdelivr.net/npm/spacingjs" defer></script>
  1. 將遊標移動在一個元素上,然後按下 Alt 鍵(Windows)或 ⌥ Option 鍵(Mac)。

  2. 將遊標移動到其他元素上,即會顯示相關的測量結果。

更多選項

同時按下 Shift 鍵會延長測量結果的顯示,這樣我們就有足夠時間進行螢幕截圖。

Chrome 瀏覽器插件及 Tampermonkey 版本

你可以在 Chrome web store 下載 Chrome 瀏覽器的插件版本,或透過 npm run ext 打包。

參與開發

歡迎 Fork 這個 Repo 進行開發,並提交 Pull Requests。在 GitHub Issues 回報 Bug,在 GitHub Discussions 討論功能/想法/問題。

授權協議

Spacing.js 使用 MIT 授權