
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
(Master)
(Development)
It's a wrapper for thetvdbs XML API, written in CoffeeScript for node. You won't be in contact with any XML if you use this library.
The library isn't finished yet. I'll update this README as I get along so you'll know what to expect.
You can check out thetvdbs programmers API to know what this library will be wrapping.
This project uses semantic versioning and uses this tag script to tag the versions.
I use the great mocha testing framework with the (also great) should assertion library for testing.
If you contribute to this project, please write a test, and make sure all existing tests pass.
First off, get an API key from thetvdb. Withouth an API key you won't be able to do anything with this library.
All code samples are presented in both, Javascript and CoffeScript.
// JS
var TVDB = require("tvdb")
, tvdb = new TVDB({ apiKey: "YOUR_KEY" });
# Coffee
TVDB = require("tvdb")
tvdb = new TVDB apiKey: "YOUR_KEY"
Possible configuration options are:
apiKey
{String}language
{String} (optional) Default: "en"
. Use getLanguages() if you want another language.initialHost
{String} (optional) Default: "thetvdb.com"
port
{Number} (optional) Default: 80// JS
tvdb.getLanguages(function(err, languages) {
if (err) return;
// Handle languages.
};
# Coffee
tvdb.getLanguages (err, languages) ->
if err? then return
# Handle languages
TVDB uses "en"
(english) as default when it fetches data. If you want another language, use this function, get the language
you want (or let the user decide which language s/he wants) and use the abbreviation
as new language.
To set the language as new default, simply call:
// JS
tvdb.setLanguage(language.abbreviation);
# Coffee
tvdb.setLanguage language.abbreviation
// JS
tvdb.getMirrors(function(err, mirrors) {
if (err) return;
// Handle mirrors.
});
# Coffee
tvdb.getMirrors (err, mirrors) ->
if err? then return
# Handle mirrors
Mirrors is an Array containing objects that are formatted like this:
{ id: "1", url: "http://thetvdb.com", types: [ "xml", "banner", "zip" ] }
types
contains at least one of "xml"
, "banner"
and "zip"
.
// JS
tvdb.getServerTime(function(err, time) {
if (err) return;
// Handle time.
};
// Coffee
tvdb.getServerTime (err, time) ->
if err? then return
# Handle time
time
is an integer.
// JS
tvdb.findTvShow("Mad Men", function(err, tvShows) {
if (err) return;
// Handle tvShows.
};
# Coffee
tvdb.findTvShow "Mad Men", (err, tvShows) ->
if err? then return
# Handle tvShows
tvShows
is an array of tvShow
objects which contain following obligatory values:
id
{String}language
{String}name
{String}and following optional values:
firstAired
{Date}imdbId
{String}zap2itId
{String}banner
{String}overview
{String}FAQs
A wrapper for thetvdb.coms XML API
The npm package tvdb receives a total of 3 weekly downloads. As such, tvdb popularity was classified as not popular.
We found that tvdb 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.