github-users-parser
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.


Package Sidebar

Install

npm i github-users-parser

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

115 kB

Total Files

53

Last publish

Collaborators

  • neuralsea