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

mushroom-cli

v1.2.3

Published

Mushroom CLI

Readme

Mushroom CLI

Init

Init a mushroom json file

npx mushroom-cli init json ./api/SampleProject.json [silent]

Init a DotNet Core project which pre-install Mushroom Server

npx mushroom-cli init netcore [projectName]

Configure

Add the mushroom json file into mushroom-config.json

npx mushroom-cli config add ./api/yourProjectName.json

Config gen docs api

npx mushroom-cli config gen projectName docs ./wwwroot/docs.html [alias aliasName] [features file,auth,mail,driver] [roles Admin,User-Contributor]

Config gen database docs

npx mushroom-cli config gen projectName "db-docs" ./wwwroot/db-docs.html [alias aliasName] [features file,auth,mail]

Config gen javascript driver

npx mushroom-cli config gen projectName "js-driver" ./src/api/mushroom.api.js [alias aliasName] [roles Admin,User-Contributor] [tarball tarballName]

Config gen typescript driver

npx mushroom-cli config gen projectName "ts-driver" ./src/api/mushroom.api.ts [alias aliasName] [roles Admin,User-Contributor]

Config gen entities for Mushroom project in CSharp and using MongoDb

npx mushroom-cli config gen projectName "c#-mongo" ./API/Generated.cs [alias aliasName]

Config gen entities for CSharp project which calls Mushroom API

npx mushroom-cli config gen projectName "c#-driver" ./API/Generated.cs [roles Admin,User-Contributor] [alias aliasName] [access-modifier public] [features file,auth,mail]

Genarate

Generate docs api (html format)

npx mushroom-cli gen projectName[@aliasName] docs [v1] [tmp]

Generate database docs (html format)

npx mushroom-cli gen projectName[@aliasName] "db-docs" [tmp]

Generate npm package (tarball file)

npx mushroom-cli gen projectName[@aliasName] "js-driver-tarball"

Generate javascript driver

npx mushroom-cli gen projectName[@aliasName] "js-driver"

Generate typescript driver

npx mushroom-cli gen projectName[@aliasName] "ts-driver"

Generate entities for Mushroom project in CSharp and using MongoDb

npx mushroom-cli gen projectName[@aliasName] "c#-mongo"

Generate entities for CSharp project which calls Mushroom API

npx mushroom-cli gen projectName[@aliasName] "c#-driver"

Merge

npx mushroom-cli merge output-path.json

Update

Update ts code (configuration was stored in mushroom-config.json file)

npx mushroom-cli update "ts-code"

Update ts code (simple call)

npx mushroom-cli update "ts-code" file-path.ts remote-ts-code-url

Other

Disable checking for update:

npx mushroom-cli parameters --no-check-update

Version

1.2.3

Improvement

  • gen ts-driver: separate import and import type when import mushroomjs

1.2.2

New features:

  • gen ts-driver, js-driver: adding binaryResponse to _raw_http_method_ actions

1.2.1

Improvement/Changes:

  • gen docs: fix bugs
  • gen c#-mongo: fix signature for RegisterCustomViewMethod method
  • init netcore:
    • change: show warning message when replacing content in unexisting file (instead of throwing error)

1.2.0

New features:

  • Support merge command
  • Support type for View result
  • gen ts-driver: Support offline mode
  • init netcore: Support some new set-functions: ToLowerCase, ToUpperCase, Trim, Replace, New-RandomNumber, New-RandomString
  • gen docs: New gen docs engine v1.2 - deal with very big api docs
    • support minify
    • allow user to add and change API root url
    • add JavascriptParamModel, JavascriptRequestBodyModel, JavascriptResultModel tab in code snippets of custom methods
    • add docs for inline mode of download file and zip file(s), allowSmallerSize for thumb
    • support links for Roles and Code Snippets
    • add docs for response body of custom methods
    • allow collapse object fields
    • add validation of fields in custom methods and parameters in views

Improvement/Changes:

  • init netcore
    • Operating fail if unknown command or set-function found
  • gen c#-mongo
    • support System.Text.Json on resources
    • generate resource classes with partial
  • gen c#-driver
    • Generate resource classes with partial
  • gen ts-driver
    • export type for object fields
    • generate type for custom methods of action
    • generate description for fields, entities
    • generate type for getCountAsync declaration
  • gen docs
    • add default-value information of fields
    • Improve documentation generation: view, custom action.
    • filter role list
    • format cURL to easy to copy and paste to Postman
    • lighten font on MacOS
    • donot use css and js files of bootstrap and jquery in CDN, copy file locally to enable to view offline
    • curl of custom method is missing header X-HTTP-Method-Override
    • Correct generate query string and request body at HTTP and cURL tabs in code snippets of custom methods
    • Correct generate param and body at Javascript tab in code snippets of custom methods
    • Correct generate JavascriptModel in code snippets
    • improve copy function
    • display the description of entities

Fixed bugs:

  • gen docs
    • Generate wrong required field for view parameter
    • doesn't exclude fields of object in an array
  • gen ts-driver
    • add null value for nullable field type

1.1.1

Improvement:

  • mushroom-cli update tsCode can read the configuration in mushroom-config.json file

1.1.0

Support MushroomServer 0.2.25.4 or later

Support mushroomjs 1.1.0 or later