Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
hs-mana-curve
Advanced tools
Readme
A simple module that generates a text-based mana curve graph based on an array of card costs.
npm i hs-mana-curve --save
parameter (default value): description
expanded
or compressed
. Determines how to curve will look.var manaCurve = require("hs-mana-curve");
var cardCosts = [0, 3, 6, 0, 6, 4, 3, 4, 2, 0, 2];
//card costs taken from https://www.hearthpwn.com/decks/1082636-spiteful-lady-in-white
//array indexes are based on mana cost so like array[cost] = amount of cards with that cost
var curveCap = 8;
//how high the module counts cards with a certain mana cost before they get capped off
var curve = manaCurve(cardCosts, curveCap, "compressed", false);
//output below
Expanded
█
█
█ █ █
█ █ █
█ █ █ █
█ █ █ █ █ █
█ █ █ █ █ █
_ █ █ _ █ █ █ █
0 1 2 3 4 5 6 7+
Compressed
█
█ █ █
▄ █ █ █ ▄ █
_ █ █ _ █ █ █ █
0 1 2 3 4 5 6 7+
Expanded w/ showAmt
0 3 6 0 6 4 3 8
- - - - - - - -
█
█
█ █ █
█ █ █
█ █ █ █
█ █ █ █ █ █
█ █ █ █ █ █
_ █ █ _ █ █ █ █
0 1 2 3 4 5 6 7+
Compressed w/ showAmt
0 3 6 0 6 4 3 8
- - - - - - - -
█
█ █ █
▄ █ █ █ ▄ █
_ █ █ _ █ █ █ █
0 1 2 3 4 5 6 7+
FAQs
A simple module that generates a text-based mana curve graph based on an array of card costs.
The npm package hs-mana-curve receives a total of 0 weekly downloads. As such, hs-mana-curve popularity was classified as not popular.
We found that hs-mana-curve demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.