Skip to content

m npm clean_tags

Remove empty npm tags.

$ m npm clean_tags @scope/package

When packages are removed there will be empty tags that point to nothing. This command will find those empty tags and remove them.

Source code in m/cli/commands/npm/clean_tags.py
class Arguments(BaseModel):
    """Remove empty npm tags.

        $ m npm clean_tags @scope/package

    When packages are removed there will be empty tags that point to nothing.
    This command will find those empty tags and remove them.
    """

    package_name: str = Arg(
        help='name of the npm package',
        positional=True,
        required=True,
    )

Positional arguments

package_name

name of the npm package