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

module-registry-client-lib

v1.2.0

Published

## Introduction

Downloads

3

Readme

Module Registry Client

Introduction

Module Registry Client (MSC) is a command-line interface (CLI) tool designed to facilitate the installation and publishing of modules.

Installation

To install MSC, use the following commands:

npm install -g module-registry-client-lib

Usage

1. Version and Help Commands

  • To check the installed version of MSC:

    msc -v
  • To get help and see available commands:

    msc -h

2. Install Modules

2.1 Install Specific Module

Install a specific module using the following command:

msc install --appId=<app-id> --version=<app-version> --channel=<version-channel> --token=<token> --modulesPath=<modules-path>

Parameters:

  • appId (required): App ID.
  • version (optional): App version (default: "latest")
  • channel (optional): Version tag. Can be set from process.env.CHANNEL (default: "main")
  • token (required): JWT token for installation. Can be set from process.env.TOKEN
  • modulesPath (optional): Relative path for modules to install (default: './modules').

The channel parameter allows you to specify a version tag (e.g., "main" or "dev"). If not specified or provided incorrectly, the default is "main". Version parameter allows you to choose specific version that you need, and in that case channel parameter will not be used.

2.2 Install mmDependencies

Install all modules from mmDependencies:

msc install mmDependencies --token=<token> --modulesPath=<modules-path>

Parameters:

  • token (required): JWT token for installation.
  • modulesPath (optional): Relative path for modules to install (default: './modules').

3. Publish Module

Publish a module using the following command:

msc publish --modulePath=<module-path> --userToken=<user-token> --tag=<version-tag> --notes=<release-notes>

Parameters:

  • modulePath (required): Path to the app archive.
  • userToken (required): User token for authentication. Can be set from process.env.USER_TOKEN
  • tag (required): Version tag (default: 'main').
  • notes (required): Notes about app updates.

Publication Policies:

  • Version validation: Only valid semantic versions are accepted for publication
  • Tag Policy and Latest Version Check: For the specified tag, only a higher than the existing latest version can be published. If you want to publish lower version, create another tag and do it. If no tag is provided, the latest version is calculated based on semantic versioning. The tag "main" is considered the default if not specified or provided incorrectly.
  • Version Rewriting Prevention: Existing versions cannot be rewritten to maintain version history.