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

@navneet1998/customcmd

v1.3.6

Published

This is the app for creating a nodejs setup fastly with the custom command.

Downloads

62

Readme

Custom Command for nodejs setup

This is the app for creating a nodejs setup fastly with the custom command.

Documentaion for the project Documentation

Version: 1.3.5

Usage

$ npm install
$ npm link
# For using command locally on your computer

You can get the package for the same on npm @navneet1998/customcmd Install it as global package

Custom Command

Commands:
  init|i                            Initializes the nodejs setup
  create-api|a                      Create api for the particular module
  create-middleware|m               Create a module/global middleware for the specific endpoint
  create-module|cm <moduleName...>  Create a new module in the apis
  create-service|cs                 Create a module/global services
  create-function|cf                Create a module/global function
  help [command]                    display help for command

Usage of Custom Command

$ framework init
# will create the nodejs setup and install the following packages needed if the root doesn't contains any files or folder

The above command will create a nodejs setup for you and install the following npm packages automaticcaly while it is installing the package do not type CTRL + C on your terminal

$ framework create-module mouleName
# Example framework create-module user
# For creating a single module in the api folder

$ framework create-module moduleName1 moduleName2 mmoduleName3 ...
# Example: framework create-module user blog admin
# For creating a multiple module at the same time
# Note: ModuleName should be separted by spaces

The above command will create a module with three folder and a routes.json file. The three folder will be middleware,controller and services and every folder will contains a file with the dummy data inside it.You can change it according to your need in future

$ framework create-api
# For creating a new api
# will Prompt the following questions 
#Enter the moduleName for the api
#Choose the method (i.e get,patch,post,put,delete)
#Enter the action for the api (enter the controller function name here)
#Enter the middleware for the api (enter the middleware name  separated by space if you have more than one middleware)
#Enter the endpoint for the api
#Want the path from root

The above command will create a new api in the routes.json of that particular module and also create the action,middleware function in controller and middleware files respectively that you have passed during propmt

$ framework create-middleware
# will prompt the following questions
# Choose the options: Module Middleware or GlobalMiddleware
# If user choose module Middleware will get the list of module name for selecting the module
# Enter the middlewareName in format fileName.middlewareName


# If user choose the global Middleware
# then user have to enter the global Middlewrae name in format fileName.middlewareName

The above command will create a middlewarefunction in the module middleware of apis folder if user chooses the moduleMiddleware option and if user chooses the globalMiddleware option then the command will create a function in the particular file specified by the user.If it already exist in that particular file then the function will not be created.

$ framework create-service
# the following question will be prompted: Wants to create global srvice or module service
# the enter fileName.serviceName for the service that you want to make

The above command will create a service on the basis of your choices whether you wnat to kae it global service or module service NOTE: if you want to add more that one services at a time then they shoul be separted by spaces

$ framework create-function
# the following command will create a module fiunction or global function on tyour choice
# NOTE: if you are making global function then the format will be folderName.anotherFolderName.fileName.functionName
# if you want to create a file in roots functions folder then write fileName.functionName

The above command will create a local function or golobal function on your choices. When you are creating a local function then the syntax for specifying the function Name is fileName.functionName and when it comes to the global function then the syntax will vary where you want to add that function so the basic synax will be first specify the folder then the fileName then the functionName.

$ framework --help
# Output 
Usage: cli [options] [command]

Node setup Management

Options:
  -V, --version                     output the version number
  -h, --help                        display help for command

Commands:
  init|i                            Initializes the nodejs setup
  create-api|a                      Create api for the particular module
  create-middleware|m               Create a module/global middleware for the specific endpoint
  create-module|cm <moduleName...>  Create a new module in the apis
  create-service|cs                 Create a module/global services
  create-function|cf                Create a module/global function
  help [command]                    display help for command
$ framework --version
# Will gives you the current version of the cli