@nodesecure/js-x-ray
Version:
JavaScript AST XRay analysis
12 lines • 521 B
TypeScript
/**
* @description Get the number of unique chars in a given string
* @param {!string} str string
* @param {string[]} [charsToExclude=[]]
* @returns {number}
*/
export declare function stringCharDiversity(str: string, charsToExclude?: Iterable<string>): number;
/**
* @description Analyze a given string an give it a suspicion score (higher than 1 or 2 mean that the string is highly suspect).
*/
export declare function stringSuspicionScore(str: string): number;
//# sourceMappingURL=stringSuspicionScore.d.ts.map