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

dwid

v0.0.3

Published

A starter project for command line scaffolding of Hello World tutorial projects.

Downloads

3

Readme

Dwid

A starter project for command line scaffolding of Hello World tutorial projects.

Use Dwid to scaffold out projects in a step by step process.


For developers (remove this section before publishing to NPM)

Intro

DWID stands for "Do What I Do". The idea for it came about from observing that people who had put in hours of effort trying to learn web technologies through interactive cloud-based tutorials still didn't know how to put projects together and how the technologies work with each other.

Process

The basic process for creating a Dwid app is:

  1. Developing To run it locally:
  • Navigate to the project on the command line.
  • Run:
npm install

Then:

node index.js dwid
  • Put in the assets (files) you want to scaffold out. Do this in the commands/assets directory. These could be HTML/CSS/JS files, images, etc.
  • Create topics. Do this in command/topics and export them in the command/topics/index.js file.
  • Configure the flow of the scaffolding. Do this in commands/topics/dwid.js.
  1. Preparing to publish In package.json:
  • Change the name of the app to the name of your Dwid, e.g. "dwid-web-design".
  • Change the version to a starting version (0.0.1).
  • Change the value of the "bin" property to use a custom CLI command for your app. For example, the following will allow the app to be run with a CLI command of "dwid-web-design":
"bin": {
    "dwid-web-design": "./bin/dwid"
  }
  • Modify any other other applicable properties. In README.md (this file):
  • Modify the description under the main heading to suit your app.
  • Remove the "For developers" section.
  • In the "Installation" section, change the install command from:
npm install -g dwid

To the command you specified in package.json, for example:

npm install -g dwid-web-design

And in the "Usage" section, change:

dwid

To your global command, for example:

dwid-web-design
  1. Publishing
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"

npm adduser
  • Publish your Dwid to NPM
npm publish ./

Best practices

  • The naming convention for Dwid projects is lowercase and prefixed with "dwid" and suffewith the "my-project-name" being the topic of study: dwid-my-project-name,
  • Each project built with Dwid should be a well-rounded and reasonably narrow unit of learning.
  • Dwid works best if the scaffolded items are well commented to explain each step.
  • Links to related resources are also handy and can be included in the comments.

Contributing

If you're interested in developing the Dwid project, fork this repository :)


Installation

In short:

npm install -g dwid

For beginners:

Dwid is run on the command line and is installed through NPM. You'll need to have Node.js on your computer, which can be downloaded here: Node.js

Then you can open the terminal (on Mac) or command prompt (on Windows) to run the NPM command above.

Usage

Create a folder on your machine that you want Dwid to use, you could call it "Dwid". Open your terminal or command prompt on this folder and run the following command:

dwid

From here, just follow the commands and Dwid will take you through the tutorial!

Attributions

Dwid was built on top of the Commander Starter project.

Licence

This project is licensed under the terms of the MIT license.