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 🙏

© 2026 – Pkg Stats / Ryan Hefner

yasir_project00_calculator

v1.1.0

Published

(more detailed explanations of each step are at the end of the document appendix c) #1 check if right environment is installed

Downloads

4

Readme

(more detailed explanations of each step are at the end of the document appendix c) #1 check if right environment is installed

open command prompt type 
#a
    node -v

    command prompt should return the version you have intalled e.g

        v18.13.0     (your version might be diffrent)

#b
    tsc -v

    command prompt should return the version you have intalled e.g

        Version 4.8.4     (your version might be diffrent)

#c
    make sure that you have visual studio installed       

(if any of above is not installed install it installation guide at end of document appendix d)    

#2 making a directory for our project

now if you know how to make a new directory using command prompt do it(more detail at end of document appendix a)
                                or
create a new folder and open it 
click in address bar 
type cmd and press enter

#3 setting up typescript configuration file

in command prompt type

#a
    tsc --init             (and press enter)

    this should create a tsconfig.json file in your directory

    make following changes in this file (more about selecting right values in end of document appendix b)
       
        change following values from whatever they are to following

    #a1
            "target" to "ES2022" (or latest available) 
            
            it should look like this now
                "target": "ES2022", 

    #a2
            "module" to "NodeNext", 

            it should look like this now
            "module": "NodeNext", 

    #a3        
            "moduleResolution" to "NodeNext",

            it should look like this now
            "moduleResolution": "NodeNext",
    (do not forget to save when you are done making changes (ctrl + s))  

#b 
    npm init -y

    this should create a package.json file in your directory

    make following changes in this file

    #b1    

        in line 6 below "main": "index.js", enter 
            "type": "module", (in package.json file created in current directory)

        this should look like this now
            "main": "index.js",
            "type": "module",    

#4 installing requires NPM packages

in command prompt type(each step is installing a package)

#a
    npm i inquirer

    this will install inquirer.js

#b 
    npm i chalk

    this will install chalk.js

#c 
    npm i chalk-animation

    this will install chalk-animator.js

(each step will install package and also add relevant package to package.json file in dependencies) 

#5 adding installed package in node_modules types

in command prompt type

#a

    npm i @types/node -D

    this will add a folder node_modules (folder) and package-lock.json file to your current directory

#b

    npm i @types/chalk -D

#c

    npm i @types/chalk-animation -D

#d

    npm i @types/node -D   

(each of these step will add respective package to node_modules @types folder as well as devdependencies in
package.json file )

#6 create a file named .gitignore in main directory

in this file type

node_modules 

this will prevent uploading node_modules when pushing to github

#7 create an index.ts file in main directory

(just to test)

type following code in this file

console.log("hi")


enter following command in terminal or command prompt

tsc

this should create a index.js file.

#8

command flow

npm i