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

doweb

v1.0.14

Published

Used to operate the website, you can add, open, description and other functions

Downloads

369

Readme

Instruction

This dependency is mainly used to open web pages through the terminal, which can record frequently visited websites, set the default website to open or the default web browser to open, but currently only supports the browsers Chrome, Edge, and Firefox. The default opened browser is Chrome, and the default opened official website is the GitHub official website. The system is initialized with two website information by default, which are GitHub and npm. If you have any questions or want to join in the development, please feel free to contact me. My email address is [email protected].

Install

npm install -g doweb

Use case

doweb show [string] -d [string] -a [string] --default

By default, it displays website information. If no parameter is specified, it displays all stored website information, for example, enter doweb show

C:\>doweb show
        name:github
                address:https://github.com
                description:GitHub is where people build software. More than 56 million people use GitHub to discover
        name:npm
                address:https://www.npmjs.com/
                description:The world's largest software registry. Discover packages of reusable code and build amazing things

The direct parameter is to display the information of the website whose name is this website. For example, I only want to view the website information of npm, enter doweb show npm

C:\>doweb show npm
        name:npm
                address:https://www.npmjs.com/
                description:The world's largest software registry. Discover packages of reusable code and build amazing things

If you want to display some information, such as description or address, you can add parameters to select which information is not displayed, where -d or --dsp indicates that the description is not displayed, -a or --addr indicates that the address is not displayed. For example, I want to view the github URL information, but ignore the description. Enter doweb show github -d

C:\>doweb show github -d
        name:github
                address:https://github.com

You can view the default configuration, default open browser and default open website with --default, Enter doweb show --default:

C:\>doweb show --default
        the default configuration is
                name:github
                browser:chrome

doweb open [string]

If you do not add parameters and enter doweb open directly, the github official website will be opened by default. Later, you can modify the default configuration through doweb default. You can open the specified website through doweb open plus the storage name of the website. For example, if I want to open the npm website, I can use the command:

doweb open npm

doweb add -d -a

Used to add a website, where the first parameter is to add the name of the website, -d or --dsp description of this website, -a or --addr the open address of this website, here is an example, doweb add baidu -d this is a website of baidu -a https://www.baidu.com/

C:\>doweb add baidu -d this is a website of baidu -a https://www.baidu.com/
The add data was successful

C:\>doweb show
        name:github
                address:https://github.com
                description:GitHub is where people build software. More than 56 million people use GitHub to discover
        name:npm
                address:https://www.npmjs.com/
                description:The world's largest software registry. Discover packages of reusable code and build amazing things
        name:baidu
                address:https://www.baidu.com/
                description:this is a website of baidu

doweb remove

It is used to remove a website information. The parameter is the name of the website. For example, if I delete the baidu website that I just added, enter the command doweb remove baidu :

C:\>doweb remove baidu
The remove data was successful

C:\>doweb show
        name:github
                address:https://github.com
                description:GitHub is where people build software. More than 56 million people use GitHub to discover
        name:npm
                address:https://www.npmjs.com/
                description:The world's largest software registry. Discover packages of reusable code and build amazing things

doweb clear

Use it with caution to clear all stored website information, including initialized data, by entering the command doweb clear:

C:\>doweb clear
The clear data was successful

C:\>doweb show
No website has been added yet

doweb reset

Restore the default Settings, will restore the system initialization data, such as has just cleared all the website information, now we use doweb reset to take a look:

C:\>doweb show
No website has been added yet

C:\>doweb reset
The reset data was successful

C:\>doweb show
        name:github
                address:https://github.com
                description:GitHub is where people build software. More than 56 million people use GitHub to discover
        name:npm
                address:https://www.npmjs.com/
                description:The world's largest software registry. Discover packages of reusable code and build amazing things

doweb default -n [string] -b [string]

It is used to change the default configuration of the system. The default browser is chrome, and the default website is github, which can be modified through doweb default. The main thing is that only chrome,edge,firefox, and other supported browsers are currently supported. For example, we want to use doweb open, the default is to open the npm website, and the default is to open the edge browser, we can enter doweb default -n npm -b edge :

C:\>doweb default -n npm -b edge
The default setting was successful

C:\>doweb open

At this time, the npm official website is opened with edge, and the default open website is changed to npm, and the default open browser is changed to edge.