
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
This module wraps the Scryfall API into a small, easy to use library.
Included with this module are Typescript definitions for each method declaration and every object returned from the API.
// Requiring.
const scryfall = require("scryfall");
// Using the import statement.
import * as scryfall from "scryfall";
// Alternative import method.
import { Scryfall } from "scryfall";
// Getting by set code and collector number.
scryfall.getCard("bfz", 29, (err, card) => {
if (err) {
// If the call was successful, this will be null.
} else {
console.log(card.name); // "Gideon, Ally of Zendikar"
console.log(card.cmc); // 4
// ...
}
});
// You can also omit a callback to have the method return a promise instead.
const card = await scryfall.getCard("bfz", 29);
console.log(card.name); // "Gideon, Ally of Zendikar"
console.log(card.cmc); // 4
// Getting by multiverse id.
scryfall.getCard(83282, "multiverse", (err, card) => {
if (err) {
// If the call was successful, this will be null.
} else {
console.log(card.name); // "Storm Crow"
console.log(card.type_line); // "Creature — Bird"
// ...
}
});
// Getting by mtgo id.
scryfall.getCard(83282, "mtgo", (err, card) => {
if (err) {
// If the call was successful, this will be null.
} else {
console.log(card.name); // "Gorilla Shaman"
console.log(card.tix); // "12.62"
// ...
}
});
// Getting by scryfall id.
scryfall.getCard("44012bb8-17b7-4b50-a796-662ef09bfc29", (err, card) => {
if (err) {
// If the call was successful, this will be null.
} else {
console.log(card.name); // "Bamboozle"
console.log(card.colors); // ["U"]
// ...
}
});
scryfall.fromSet("hml", (cards) => {
console.log(cards[0].name); // "Abbey Gargoyles"
});
FAQs
A simple wrapper around Scryfall's public API.
The npm package scryfall receives a total of 14 weekly downloads. As such, scryfall popularity was classified as not popular.
We found that scryfall 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.