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

@o3r/artifactory-tools

v11.5.4

Published

Various artifactory tools

Downloads

29,707

Readme

Description

Stable Version Bundle Size

This module provides various tools for the supported repository manager JFrog, including deleting old artifacts and deleting a specified amount of PR build artifacts.

Artifact cleaner (JFrog)

Cleans old artifacts from JFrog artifactory repositories. Based on the provided (or default) milliseconds value, this script will delete artifacts created before the specified date and artifacts that have not been downloaded since the specified date. The search for the artifacts to delete is limited to the specified repositories.

Further information can be found in the JFrog documentation here.

Usage

o3r-artifact-cleaner [options]

The required options include:

  • the JFrog artifactory URL (--artifactory-url)
  • the authentication (--basicAuth <basicAuth>)
  • the artifact repositories to clean up (--repositories <repositories>)

Options

| Option | Alias | Value Type | Default Value | Description | |----------------------------------------------------------|:-----:|----------------------|---------------------------------|------------------------------------------------------------------------------------------------| | --artifactory-url <artifactoryUrl> (Required) | | string | | JFrog artifactory URL | | --basicAuth <basicAuth> (Required) | -b | string | | Base64 encoding of username:password (password already encrypted from artifactory UI) | | --repositories <repositories> (Required) | -r | string | | Artifact repositories to clean up (comma separated) ex: 'repo1,repo2' | | --dry-run <dryRun> | | boolean | false | List all files that would be deleted without actually deleting them | | --duration-kept <durationKept> | -d | number or string | 604800000 (i.e., 7 days) | All artifacts older than this value (in ms) or not downloaded since this value will be deleted | | --type-filter <typeFilter> | -t | string | 'tgz,json' | List of artifact types that should be deleted (comma separated) ex: 'jar,tgz' | | --help | -h | | | Output usage information |

Example

yarn o3r-artifact-cleaner --artifactory-url "https://jfrog.io/repoName" -b thisismybase64tokenwithuserandencryptedpassword

PR Artifact cleaner (JFrog)

Cleans old PR artifacts from JFrog by using the build version that is present in the path. If the build version is not present in the path, this tool cannot be used. Based on the provided (or default) days value, this script will delete artifacts created before the specified date, within the provided repository matching the provided path.

Further information can be found in the JFrog documentation here.

Usage

o3r-pr-artifact-cleaner [options]

The required options include:

  • the JFrog artifactory URL (--artifactory-url <artifactoryUrl>)
  • a method of authentication (--api-key <apiKey> or --basicAuth <base64>)
  • the artifact repository to clean up (--repository <repository>)
  • the artifact paths to clean up (--path <path>)

Options

| Option | Alias | Value Type | Default Value | Description | |----------------------------------------------------------|:-----:|------------|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------| | --artifactory-url <artifactoryUrl> (Required) | -u | string | | JFrog artifactory URL | | --path <path> (Required) | -p | string | | Artifact paths to clean up (using matcher from AQL language). Be careful not to include release artifacts in the path. ex: sample/path/*-PR-* | | --repository <repository> (Required) | -r | string | | Artifact repository to clean up | | --api-key <apiKey> | -a | string | | Artifactory API key of the user that can be used to log in | | --basicAuth <base64> | -b | string | | Base64 encoding of username:password (password already encrypted from artifactory UI) | | --dry-run <dryRun> | | boolean | false | List all files that would be deleted without actually deleting them | | --duration-kept <durationKept> | -d | number | 1 | All artifacts older than this value (in days) will be deleted | | --pr-builds <prBuilds> | -n | number | 1 | Number of PR build artifacts that will be kept | | --verbose | -v | | | Display the executed AQL query | | --help | -h | | | Output usage information |

Example

yarn o3r-pr-artifact-cleaner --artifactory-url "https://jfrog.io/repoName" -b thisismybase64tokenwithuserandencryptedpassword