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 🙏

© 2026 – Pkg Stats / Ryan Hefner

jquery-gototop-plugin

v1.1.1

Published

jQuery plugin which generates link to move to top of the current web page

Readme

jquery-gototop-plugin

jQuery plugin which generates link to slide to top of the page

This plugin is very simple to use and to adopt to your needs. Just create some link, button or any other element, which user can click to jump to beginning of the page, and attach the plugin to it. In basic usage doesn't need any CSS code to position HTML link element. Refer to demo.html to see how it works.

Configuration options

  • dist (200) - Distance from top after link will shown; if 0 then link won't be hidden when page loads
  • fadeInDelay (400) - Time to show link in ms
  • fadeOutDelay (400) - Time to hide link in ms
  • scrollSpeed (400) - Time to jump to top of the page in ms
  • easingType (linear) - Type of transition, {see https://github.com/flesler/jquery.scrollTo}
  • List of Css properties for link positioning: top (null), bottom (30px), left (null), right (30px)

Examples

Using bootstrap classes

<a id="totopicon" href="#" class="fa-stack fa-lg">
  <i class="fa fa-circle fa-stack-2x"></i>
  <i class="fa fa-chevron-up fa-stack-1x fa-inverse" aria-hidden="true"></i>
  <i class="sr-only">Go to top</i>
</a>
<script type="text/javascript">
$('#totopicon').gototop();
</script>

Custom link position and different scroll position in which icon will be shown

<button class="gototop">Go to top</button>
<script type="text/javascript">
$('.gototop').gototop({
  dist: 300,
  css: {
    top: '50px',
    left: '30px',
    right: null,
    bottom: null,
  }
});
</script>