New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@altafonte/words

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@altafonte/words

Provides operations with words

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
3
Created
Source

Words

Words info utils

FunctionDescription
generateCharacterRankingSetAnalizes an array of words and generates a Ranking object that contains information about how many times every character is present (unique) in the words of the array. Example: { a: 23, r: 7, z: 1 }
normalizeCharacterRankingNormalizes values of a generated Ranking: { a: 3, r: 2, z: 1 }
getWordRankUses a Ranking to calculate the score of a given word
getSortedWordsByRankingReturns the word's array sorted according to each word's score.
getMostValuableWordReturns the most valuable word from a word's array. The most valuable is the word whose characters are the most repeated in the word's array (ignores repeated characters in the same word).

Word's filters

FunctionDescription
wordPassesFilterChecks that a word passes a given filter
filterWordsFilters words array according to the given filters

Keywords

words

FAQs

Package last updated on 24 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts