Skip to content

ivanasabi/github-members-export

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Members Export

A Deno CLI tool to export GitHub organization members to JSONL format.

Features

  • Export all members from any GitHub organization
  • JSONL format output (one JSON object per line)
  • Standalone binary compilation support

Usage

Using Deno directly

deno run --allow-net --allow-write main.ts --org <organization> --token <github_token>

Using Docker

Pull and run from GitHub Container Registry:

docker run -v $(pwd):/data ghcr.io/jorgeteixe/github-members-export --org your-org --token your_github_token

The output file will be saved in your current directory as <organization>-members.jsonl.

Options

  • --org, -o: GitHub organization name (required)
  • --token, -t: GitHub personal access token (required)

Examples

Export organization members:

# Using Deno
deno run --allow-net --allow-write main.ts --org your-org --token ghp_xxxxxxxxxxxx

# Using Docker
docker run -v $(pwd):/data ghcr.io/jorgeteixe/github-members-export --org your-org --token ghp_xxxxxxxxxxxx

GitHub Token

You need a GitHub personal access token with appropriate permissions to read organization members. Create one at GitHub Settings > Developer settings > Personal access tokens.

Output Format

The tool exports data in JSONL format where each line contains a complete JSON object representing one organization member:

{"login":"octocat","id":1,"node_id":"MDQ6VXNlcjE=",...}
{"login":"defunkt","id":2,"node_id":"MDQ6VXNlcjI=",...}

Building

Local binary

deno compile --allow-net --allow-write --output github-members-export main.ts

Docker image

docker build -t github-members-export .

License

MIT

About

A Deno CLI tool to export GitHub organization members to JSONL format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 86.4%
  • Dockerfile 13.6%