Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
A NodeJS helper library to create, cancel, and retrieve records of virtual debit cards.
Uses SVB-Client module and your API credentials.
let client = new SVBClient({
API_KEY: '',
HMAC_SECRET: ''
});
let SVBCard = new SVBCards(client);
// create and retrieve virtual card
// showCardNumber is true or false
SVBCard.create({ cardData }, showCardNumber, (err, response) => {
console.log(response);
});
SVBCard.get(cardID, showCardNumber, callback);
// patch update
SVBCard.update(cardID, { cardData }, showCardNumber, callback);
// send an email to someone with their card details
SVBCard.email(cardID, 'janet@example.com', callback);
// cancel
SVBCard.cancel(cardID, callback);
// getting a list of cards
SVBCard.all({}, 0, 0, (err, response) => {
// response.data is an array of cards
});
// using metadata filters (e.g. metadata.purchase_nunber)
SVBCard.find({ purchase_nunber: 101 }, 0, 0, (err, response) => {
// response.data is an array of cards
});
// using pagination
SVBCard.find({ ... }, startCursor, limit, (err, response) => {
// response.data is an array of cards
// response.links.first is the first page of results
// response.links.next moves cursor to the next page of results
// e.g. "/v1/virtualcards?page[cursor]=87285"
});
npm install svb-cards --save
FAQs
Generating Virtual Cards using the Silicon Valley Bank API
The npm package svb-cards receives a total of 1 weekly downloads. As such, svb-cards popularity was classified as not popular.
We found that svb-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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.