UNPKG

@nodesecure/authors

Version:

NodeSecure (npm) authors analysis package

35 lines (30 loc) 693 B
// Import Third-party Dependencies import { Scanner } from "@nodesecure/scanner"; export function extractAllAuthors(library: Scanner.Payload, opts: options): Promise<extractionResult> export interface options { flags: extractedAuthor[], domainInformations: boolean, } export interface extractionResult { authors: author[], flaggedAuthors: extractedAuthor[], } export interface author { name?: string; email?: string; url?: string; packages: { homepage: string, spec: string, version: string, at?: string, }[], domain?: { expirationDate?: string, mxRecords?: unknown[], } } export interface extractedAuthor { name: string, email: string, }