Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
hearthstone-cards
Advanced tools
A module to fetch hearthstone card information using the HearthstoneJSON api.
A module to fetch hearthstone card information using the HearthstoneJSON API.
hearthstone(filters, collectible = true)
Returns a Promise of an array of objects.
filters
- Filters that specify which cards to find. For example, hearthstone({ "cost": 10 })
will produce an array of all collectible cards that cost 10 mana. For more information, click here.
collectible
- An optional argument that determines whether or not the card is a collectible. An example of a non-collectible card is Essence of the Red, a hero power used by Vaelastrasz the Corrupt in the Blackrock Mountain expansion.
This is an example of fetching all cards with the given filters:
const hearthstone = require("./hearthstone.js");
hearthstone({
"cost": 6,
"set": "UNGORO",
"rarity": "LEGENDARY"
}).then(cards => {
cards.forEach(card => {
console.log(`${card.name} - ${card.text.replace(/\n/g, " ")} [ATK ${card.attack} HP ${card.health}]`);
});
}).catch(console.error);
The above code will produce this:
Elise the Trailblazer - <b>Battlecry:</b> Shuffle a sealed�<b>Un'Goro</b> pack into�your deck. [ATK 5 HP 5]
Lyra the Sunshard - Whenever you cast a spell, add a random Priest spell to your hand. [ATK 3 HP 5]
FAQs
A module to fetch hearthstone card information using the HearthstoneJSON api.
The npm package hearthstone-cards receives a total of 0 weekly downloads. As such, hearthstone-cards popularity was classified as not popular.
We found that hearthstone-cards 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.