Socket
Book a DemoInstallSign in
Socket

gh-archiver

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gh-archiver

Tools for archiving GitHub repositories.

1.1.1
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

gh-archiver

A tool for archiving GitHub repositories

Installation

# Global install
npm i -g gh-archiver

# npx
npx gh-archiver --help

Usage

Create a Personal Access Token

You need to create a Personal Access Token with permissions set as per the following table from the settings.

Select All repositories for Repository access

Permission NameAccess
AdministrationRead and write
MetadataRead-only

Command-line

# Archive repositories that are 1 year old from the last update date.
gh-archiver --before 1y --token="PERSONAL_ACCESS_TOKEN"

# Archive repositories whose last update date is less than 1 year old
# TIPS: If the PAT (Personal Access Token) is registered in an environment variable named "GITHUB_TOKEN", there is no need to use the --token flag.
gh-archiver --after 1y

# More information
gh-archiver --help

License

See LICENSE file.

Author

  • InkoHX

Keywords

github

FAQs

Package last updated on 13 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.