ioc-extractor
Version:
IoC (Indicator of Compromise) extractor
28 lines (26 loc) • 685 B
text/typescript
/**
* Reject duplications from an array
*
* @export
* @param {string[]} array An array of strings
* @returns {string[]} A set of strings
*/
declare function dedup(array: string[]): string[];
/**
* Soar an array by value
*
* @export
* @param {string[]} array An array of strings
* @returns {string[]} A sorted array
*/
declare function sortByValue(array: string[]): string[];
/**
* Remove defanged symbols from a string
*
* @export
* @param {string} s A string
* @returns {string} A cleaned (aka refanged) string
*/
declare function refang(s: string): string;
declare function unicodeToASCII(s: string): string;
export { dedup, refang, sortByValue, unicodeToASCII };