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

range-input-slider

v2.0.0

Published

Range input slider lib.

Readme

Range input

Realization of capability of range input.

Demo

You can see demo page here

Installation

npm install range-input-slider --save

Documentation

Interface:

    const Slider = new InputRangeSlider(document.getElementById('slider'), {
        minPoint: 50,
        maxPoint: 100,
        min: 1,
        max: 200,
        step: 10,
        onValueChangeStop: (newValues) => {
            console.log('Change', newValues);
        },
        onValueChange: (newValues) => {
            console.log('Change', newValues);
        },
        serifs: [
            { position: 0, html: '<span style="color: red; font-size: 11px;">1</span>' },
            { position: 25, html: '<span style="font-size: 11px;">50</span>' },
            { position: 50, html: '<span style="color: green; font-size: 11px;">100</span>' },
            { position: 75, html: '<span style="font-size: 11px;">150</span>' },
            { position: 100, html: '<span style="color: red; font-size: 11px;">200</span>' }
        ],
        cssClasses: {
            wrapper: 'wrapper',
            lineWrapper: 'lineWrapper',
            line: 'line',
            control: 'control',
            activeRange: 'activeRange',
            serifs: 'serifs',
            serif: 'serif'
        }
    });

    Slider.init();

Methods

init - range input initialization

Settings

| Setting | Type | Description | Example | Required | | ------------- | ------------- | ------------- | ------------- | ------------- | | min | number | Minimum possible value of range | 1 | yes | | max | number | Maximum possible value of range | 100 | yes | | minPoint | number | Default value for minimum value. Default position of minimum value control will be determ by this value. | 1 | yes | | maxPoint | number | Default value for maximum value. Default position of maximum value control will be determ by this value.| 10 | yes | | step | number | Value of interval between control position. Default value is 1. | 5 | no | | element | HTMLElement | Element which will be a parent for range input element. | document.getElementById('price') | yes| | onValueChangeStop | function | Will be called every time when control position changing is stoped. | (newValues) => { console.log(min: ${newValues.min}, max: ${newValues.max} ); } | yes | | onValueChange | function | Will be called every time when control position is changed. | (newValues) => { console.log(min: ${newValues.min}, max: ${newValues.max} ); } | no | | serifs | array | Array of serifs. Serif is object with position - value in percents of left serif position and html - content of position. | [{ position: 0, html: '<span style="color: red">1</span>' }, { position: 0, html: '100' }] | no | | cssClasses | object | Classes for all internal elements of range input. | { wrapper: 'my-site-wrapper', lineWrapper: 'my-site-line-wrapper', line: 'my-site-line', control: 'my-site-control', activeRange: 'my-site-active-range', serifs: 'my-site-serifs', serif: 'my-site-serif' } | no |

Development

$ npm install
$ npm start

License

MIT