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

purecss-ui-menu

v1.0.1

Published

Responsive menu system with submenus and dropdowns built on purecss-ui.

Downloads

1

Readme

purecss-ui-menu

purecss-ui-menu is a responsive menu control that implements submenus and a hamburger menu with dropdowns using vanilla JavaScript.
Demo: https://sanjaythadani.github.io/purecss-ui-menu/

This submenu system builds on top of the horizontal menu from purecss-ui design system:
npm install purecss-ui --save
GitHub: https://github.com/sanjaythadani/purecss-ui

Once the parent design system is installed, then install the submenu package:
npm install purecss-ui-menu --save

Include any one of the CSS stylesheets from the dist folders of the package, depending on the required theme and the minification.

Then include one of the JS files.

The JS file does support UMD so it can be used in a modular capacity.

The menu system uses CSS processed through PostCSS to create a design system with a minimal footprint that is easily customized and currently supports the following themes:
-- default
-- dark

The project use gulp as its task runner and will work easier if you have gulp-cli installed globally and want to work with it locally.
npm install gulp-cli -g

Runninng the project locally:

  1. Run 'npm install' to install all Node.js dependencies.
  2. Run 'npm run build:dev' to create all the local artifacts.
  3. Run 'npm run serve' to run the local Express server. If the files need to be watched then use 'npm run watch' instead.

Creating a distribution:

  1. Run 'npm install' to install all Node.js dependencies.
  2. Run 'npm run build:dist' to create the distribution artifacts.