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

jd-menu

v0.8.1

Published

A Lightweight, Simple Sliding Menu

Readme

JD Menu

A lightweight, simple to use sliding menu.

Installation

NPM

npm install jd-menu --save

Yarn

yarn add jd-menu

Bower

bower install jd-menu --save

Usage

$(".some-menu).jdMenu({'duration': 500, 'trigger': $('js-menu-trigger')});

Require (NPM / Yarn)

let jdMenu = require('jd-menu');

Import (NPM / Yarn)

import jdMenu from 'jd-menu';

Require (Bower)

let jdMenu require('SomePath/bower_components/jd-menu');

CSS

@import 'SomePath/bower_components/jd-menu/dist/css/master.css';
@import 'SomePath/node_modules/jd-menu/dist/css/master.css';

SASS (NPM / Yarn)

@import 'SomePath/node_modules/jd-menu/src/css/master.scss';

SASS (Bower)

@import 'SomePath/bower_components/jd-menu/src/css/master.scss';

SASS Default Variables ( Override in your variables )

$JD-bg-color: #455A64 !default;
$JD-text-color: #fff !default;
$JD-border-color: $JD-text-color !default;

Options

All of the differnet options with there default values.

{    
  arrows: true,
  animation: 'slide',
  duration: 300,
  customArrow:'<i class="fa fa-chevron-right"></i>',
  customBack: '<i class="fa fa-chevron-left"></i> Back',
  theme: 'default',
  trigger: ''  
}

Arrows

{
  arrows: true, // Default
  arrows: flase
}

Trigger

{
  trigger: '', // Default
  trigger: $('.js-menu-trigger') // Example
}

Duration

{
  duration: 300, // Default
  duration: 500 // Example
}

Arrows Content

{
  customArrow: '<i class="fa fa-chevron-right"></i>', // Default (Font Awesome)
  customArrow: '<i class="material-icons">keyboard_arrow_right</i>' // Example (Material Icons)
}

Back Button Content

{
  customBack: '<i class="fa fa-chevron-left"></i> Back', // Default
  customBack: '<i class="material-icons">keyboard_arrow_left</i> Back' // Example
}

Theme

More base themes coming soon !

{
  theme: 'default', // Default
  theme: 'custom' // Example
}

Menu Events

There are some simple events that can be called on resize for example

$('.some-menu').jdMenu('up'); // Slides up the menu
$('.some-menu').jdMenu('down'); // Slides down the menu
$('.some-menu').jdMenu('removemenu'); // Removes JdMenu from a active menu
$('.some-menu').jdMenu('startmenu'); // Restart a menu when the removemenu event has been called

// Example Usage
$(window).on('resize', function(){
    $('.some-menu').jdMenu('up');
});

Dependencies

Font Awesome (For Arrows)

jQuery