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

wdgx

v4.1.1

Published

Static website directory generation

Downloads

156

Readme

wdgX

NPM Version NPM Downloads Install Size GitHub

Static website directory generation

It's like a mirror station

Version

4.1

Improved processing speed

Change collocation method for change_title

Support change_title to directory path

4.0

wdgx4.0 is three times faster than wdgx3.0! 1000 times faster than wdg3.1!

cttp and hcttp -> changewebsitetitle , Support numerous html id (details)

Supports HTML for custom lists

3.0

you can use 'wdgx -c' to clear all web pages (i.e index.html )

1.6

Support custom list style

1.5

Support hexo
Change cttp, hcttp and change_title collocation method

1.4

Supports changing suffixes (for example, can be index.html It can also be index.md )
Support the ID of custom website and page title (cttp and hcttp)
Support display and return to upper level folder

wdg3.1 to wdgX 1.0

300X

300 times faster!

wdg3.1 uses python, wdgX uses JavaScript
And wdgX supports the command line

Install

npm install wdgx -g

Config

Find the folder where you want to use the wdgX, and need use "wdgx -i" to init

Then you can see a new file called "wdgx-config.json" in the current directory

If you want to reinitialize, please enter "wdgx -i -f"

{
    "path": "./", // Folder to use
    "suffix": "html", // file extension
    "changewebsitetitle": [ // Whether to change the website title, see below
        "direct" //html id
    ],
    "pd": true, // Display upper level folder
    "e_html": "./e.html", // Basic HTML
    "html": "<td><a class=\"filename\" href=\"{0}\"> {1} '</a></td><td><a class=\"mtime\">'{2}'</a></td>", //HTML for custom lists. {0} auto replace url, {1} auto replace name, {2} auto replace to file change time
    "disable_index": [ // Do not generate these files to web pages
        "index.html",
        ".git",
        "CNAME",
        ".DS_Store",
        "README.md",
        "json",
        "e.html",
        "js",
        "css",
        "node_modules",
        "package.json",
        "package-lock.json",
        "LICENSE",
        ".gitignore",
        "wdgX-config.json",
        "apple-touch-icon.png",
        "apple-touch-icon-precomposed.png",
        "favicon.ico"
    ],
    "disable_catalog": [ // Hide these files to the web page
        "img",
        "documents"
    ],
    "change_title": [ // Switch the names of these files
        {
            "title": "img",
            "to": "photo"
        },
        {
            "title": "doc",
            "to": "documents"
        }
    ],
    "markdown": { // Blog function(Hexo) https://hexo.io/docs/front-matter
        "YN": false, // Whether to enable markdown parameter
        "layout": false, // false or "string"
        "title": false, //false or "string" id
        "img": {
            "img": false, // false or "string"
            "file": "/img/background.png" // "string"
        },
        "tags": false, // false or "string"
        "date": false, // false or "string"
        "updated": false, // false or true or "string" (If true, the current time is used)
        "comments": false, // false or "string"
        "categories": false, // false or "string"
        "permalink": false // false or "string"
    }
}

pd

means Parent directory

effect:

effect

changewebsitetitle

path:/

path:/wuhaneduyun

disable_index and disable_catalog

disable_index will not generate links in the directory,And if it is a directory, no web page will be generated in this directory

disable_catalog is equivalent to a hidden folder

e.html

Basic HTML content

You need the following:

<table>
    <thead>
        <th>Name</th>
        <th>Last Update</th>
    </thead>
    <tbody id="filelist">

    </tbody>
</table>

This is the file directory section, id must be filelist

example.html

example website

generation

Find the generate "wdgx-config.json" folder

wdgx -g

Wait a few seconds, and he's done

As you can see, they are generated in all directories index.html file

Start Server

We provide a service to start the server, and of course you can also move this folder to nginx

wdgx -s

              _      __  __
 __      ____| | __ _\ \/ /
 \ \ /\ / / _` |/ _` |\  /
  \ V  V / (_| | (_| |/  \
   \_/\_/ \__,_|\__, /_/\_\
                |___/
Starting up http-server, serving ./
Available on:
  http://127.0.0.1:4000
  http://172.20.10.5:4000
Hit CTRL-C to stop the server

For more help on "wdgx -s", please enter "wdgx -s -h"

clean index.html

If you want to move the folder to other places and there are a lot of files, you can use "wdgx -c" to clear all web pages (excluding disable)_ After the move, you can use "wdgx -g" to regenerate