@nodesecure/contact
Version:
Utilities to extract/fetch data on NPM contacts (author, maintainers ..)
18 lines • 610 B
TypeScript
import type { Contact } from "@nodesecure/npm-types";
export interface CompareOptions {
/**
* @default true
*/
compareName?: boolean;
}
/**
* Compare two contacts and return true if they are the same person
*
* TODO:
* - name separated by comma instead of space
* - lot of emails is a combinaison of last name + first name
* - look for name in email and url
* - add options for custom/advanced comparaison
*/
export declare function compareContact(contactA: Partial<Contact>, contactB: Partial<Contact>, options?: CompareOptions): boolean;
//# sourceMappingURL=compareContact.d.ts.map