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

tejas-first-cli

v1.0.1

Published

MyProfile/MyResume - (Welcome message, description) ABOUTME EXPERIENCE TECH SKILLS CONTACT ME

Downloads

6

Readme

MyProfile/MyResume - (Welcome message, description) ABOUTME EXPERIENCE TECH SKILLS CONTACT ME

-> Let us call each executable as command, -> Create a cmd folder -> Data (All Json files) -> Root Folder (will have welcome msg, description)


Dependencies - cfonts chalk --function cli--- inquirer commander

How to use this repo? This repo is step-by-step guide. You can clone the repo or follow along.Every folder is marked below with what is expected in it.

0️⃣ Walkthrough [Theory] Introduction to nodejs and CLI.

Folder : session-1/intro.md

1️⃣ Setup your machine [Codelab] Folder : session-1

Install nodejs

Create a folder - "myprofile"

Create package.json

npm init 2️⃣ Create your Data [Codelab] Folder : session-2

Go to folder session-2/myprofile/data. If you want to update the content you can edit it in data.js

3️⃣ Code Time [Codelab] Folder : session-3

Go to folder session-3/myprofile. In this we will identify the commands and add it to the commands folder.

To sync with data.js we have following commands (user input) :

about me contact me experience summary To print the choices on the terminal we will use the npm package inquirer.

4️⃣ Beautification Folder : session-4

This section is totally optional. To make the CLI' content more colorful and presentable. We will use two more packages:

chalk : Will let us provide the colors to the texts. cfonts : Will let us write a big fancy welcome message. inquirer : Common interactive command line user interfaces. commander : Common interactive command line user interfaces. 5️⃣ Publish NPM [Codelab] How to make it Executable? Add #!/usr/bin/env node on the top of index.js. Read about it here : https://en.wikipedia.org/wiki/Shebang_%28Unix%29

In package.json, add section of bin

"bin": { "myprofile": "./index.js" } Run the following command

npm link Now go to the terminal and write

myprofile Publish to NPM Create an account in npmjs.com

On terminal run the following command & enter the username and password.

npm login To publish

npm publish You can check your package after publishing : https://www.npmjs.com/~{username}/{package-name}

How to run it? Go to the desire folder. eg :

cd session-2/myprofile Install the dependency

npm install From the root of the myprofile run the following command to start the application

node index.js