New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

github-users-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-users-parser

Antlr4 generated GITHUB_USERS parser

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

github-users-parser

github-users-parser is an Antlr4 generated GITHUB_USERS parser. This module helps in parsing and working with GitHub user information.

Features

  • Uses ANTLR4 for parsing.
  • Provides both visitor (DefaultVisitor) and utility functions (GetGitHubHandlesByEmail) for handling GitHub user information.

Installation

npm install github-users-parser

Usage

Import and use the package

import { DefaultVisitor, GetGitHubHandlesByEmail } from 'github-users-parser';

const result = GetGitHubHandlesByEmail("input-string", ["sample@email.com"]);

const visitor = new DefaultVisitor(["sample@email.com"]);

API

GetGitHubHandlesByEmail(input: string, emailAddresses: string[]): string[]

Given an input string and an array of email addresses, this function returns the associated GitHub handles.

DefaultVisitor

A class to visit and process GitHub user information.

Development

Building the project

To build the project, run:

npm run co:build

Generating parser and lexer using antlr4ts

To generate the parser and lexer:

npm run co:antlr4ts

Issues

If you encounter any bugs or issues, kindly report them here.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

antlr4

FAQs

Package last updated on 09 Sep 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