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

crudops

v2.1.3

Published

Your solution for simplifying working with tedious mongoDB/mongoose CRUD operations stuff like creating boilerplate files/stubs for model, controller, and router with some basic lines of code each in the corresponding directory through the command line,

Downloads

303

Readme

crudops

Your solution for simplifying working with tedious mongoDB/mongoose CRUD operations stuff like creating boilerplate files/stubs for model, controller, and router with some basic lines of code each in the corresponding directory through the command line, and you can customize them further as you prefer

Installation

npm install crudops

And in your project directory after adding it to node_modules folder run this to use the command of the package

sudo npm link crudops

Quick Start

(assuming we got no permissions, ⛔ we prefix commands with sudo) To have a model, just run

sudo crudops make:model Car

Custom arguments

You may specify an argument/flag/option to create extra files like a controller or a router file

  1. For a controller, run the same previous command appended by -c flag:
sudo crudops make:model Car -c
  1. For a router, run the same previous command appended by the -r flag:
sudo crudops make:model Car -r
  1. Finally, you can run all of them
sudo crudops make:model Car -cr

if you're in using linux OS, you wanna also run as default is root user:

sudo chown -R <your_username> models

sudo chown -R <your_username> controllers

sudo chown -R <your_username> routers

I hope you enjoy using/contributing to it 😇.