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

generator-maintenance

v0.1.0

Published

An Apache maintenance solution for simple sites using .htaccess.

Downloads

5

Readme

Generator-Z-Maintenance

Installation and Usage

run npm install generator-z-maintenance -g

After that, you can run yo z-maintenance from a project to start the generator.

Description

This generator will provide a basic maintenance.html file, and a set of .htaccess rules, to handle maintenance on a site.

Maintenance can then be activated by uploading an empty "maintenance" file to the project's public folder.

Configuration

Since the some paths had to be provided as absolutes, every new environment will need adjustments.

So for example for the site: "http://site.com", the needed adjustmens would be to replace every occurances of "public_path/" to an empty string.

Another example would be, if a developer has the project under the "localhost/a/long/path/project" path. The developer then must replace every occurances of "public_path/" to "a/long/path/project/public_path/".

Collaboration, different environments

The way the .htaccess file needs to be configured means that it can not be version controlled, since every environment needs a little tweak for every developer. A way to store the htaccess file in the repository, is to save it as ".htaccess.dist" (Think of it as a template file.), so that every developer must "implement" it as ".htaccess", having the latter ignored by the VCS.

This may seem to be a lot of work, but it's a well estabilished way to collaborate on a project. (Just don't deploy "*.dist" files to production environment.)

To see how the Symfony2 Framework uses this pattern, read this article about the configuration.

For an easy to use setup page, which helps implementing these "*.dist" files, please consider using this generator.