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

@b-mo/cli

v0.7.3

Published

BMO CLI is an extensible command line interface for improving your work flow. Using its extensions you can easily startup a BMO http server, or even generate new projects and components.

Readme

@b-mo/cli

BMO CLI is an extensible command line interface for improving your work flow. Using its extensions you can easily startup a BMO http server, or even generate new projects and components.

Setup

install the bmo cli with your package manager of choice:

npm install -g @b-mo/cli

yarn global add @b-mo/cli

This will make the bmo command available in your terminal. From there you can use any commands you need. When using bmo in a npm module it is suggested that you install it locally to that project so you do not need any globally installed dependencies. Its more convenient to use the global bmo command to generate new resources and dependencies,

Commands

Start [DEPRECATED]

Use bmo run instead.

bmo start

|Option | Description | |----------------|----------------------------------------------------------| |-d | Start the server in dev mode, changes restart the server | |-s | Add a directory to be served as static assets | |-c | Set the base directory where BMO looks for the config | |--baseDir | Set the base directory for BMO's entry point. |

This command starts up a bmo http server in the current directory.

Create

bmo create <template> <name>

This command runs the given template

Some templates are included but more can be added by using extensions

|Option | Description | |----------------|----------------------------------------------------------| |service | Creates a BMO http server project | |resource | Creates a restful resource with the given name | |dependency | Creates a new dependency for BMO dependency injection |

Add

bmo add <pkg@version> [as <alias>]

This will add the given package as a dependency and include it in your manifest automatically.

|Option | Description | |----------------|----------------------------------------------------------| |--as | When injected into the manifest it will use this instead | | | of the module name. |

Extensions

BMO cli allows users to extend its functionality through extensions. During startup BMO will search your global node_modules, and if using yarn global modules/links for any packages with bmo-extension in it. If found it will attempt to load the extension into the cli. Currently the CLI supports two types of extensions. commands and templates

Extension commands

BMO uses commander to implement it's cli. When creating an command extension you can define it one of two ways. As either an action or an external file.

A basic extension looks like this. Your module should export something like:

import path from 'path'
export default {
  commands: {
    myCommand:{
      format: 'myCommand [params]',
      description: 'my command that does some stuff'
      action: (params)=>{}
    },
    myOtherCommand:{
      format: 'myOtherCommand [params]',
      description: 'my command that does some stuff'
      file: path.resolve(__dirname,'./myCommand')
    }
  }
};

If any conflicts between modules are found, then you just need to append a namespace to the command: myModule.myCommand

Extension templates

During development you may find that you have to write the same boilerplate code over and over again. BMO provides you the ability to create new templates and add them to the create commands arsenal. You can add new templates to the create command by exporting something like the example below from your module.

import path from 'path'
export default {
  templates: {
    customTemplate: async () => ({
      questions: [//array of [inquirer](https://github.com/SBoudrias/Inquirer.js/) questions],
      preProcess:({files, answers})=>{
        //process files and answers
        //return modified files/answers
        return {files, answers}
      },
      postProcess:async ({files,answers})=>{
        // do any clean up or post create actions like install new dependencies
      },
      files: {
        //These are files that will be generated.
        foo: (answers)=>`some file content`,
        bar: (answers)=>`some file content`
      }
    })
  }
};

After installing your extension somewhere where BMO can find it you can use bmo create customTemplate to invoke the newly created template.