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.
myanimelist-api-wrapper
Advanced tools
Readme
This is a simple wrapper around the myanimelist API hosted on npm. This library can be used in browsers or node.
Note: It's structured like exactly like the myanimelist API reference, so always refer to it if you have an error. Also, this is under active development, so if there any bugs please email me, or fix it.
Extra Information: There are four types of bundles umd('myanimelist-api-list'), amd('myanimelist-api-list/dist/bundle_amd.js'), iife('myanimelist-api-list/dist/bundle_iife.js'), and es('myanimelist-api-list/dist/bundle_es.js'). By default it uses umd.
Resources:
yarn add myanimelist-api-wrapper
const MAL = require("myanimelist-api-wrapper");
const anime = MAL().anime;
const user_animelist = MAL().user_animelist;
const forum = MAL().forum;
const manga = MAL().manga;
const user_mangalist = MAL().mangalist;
const user = MAL().user;
anime({
client_id: "insert client_id here",
q: "one",
limit: 4,
})
.anime_list()()
.then((data) => console.log(data));
user_animelist({
auth_token: "insert auth_token here",
anime_id: 17074,
score: 10,
})
.update_animelist()()
.then((data) => console.log(data));
forum({
client_id: "insert client_id here",
})
.forum_boards()()
.then((data) => console.log(data));
manga({
client_id: "insert client_id here",
q: "one",
})
.manga_list()()
.then((data) => console.log(data));
user_mangalist({
auth_token: "insert auth_token here",
manga_id: 208,
})
.update_mangalist()()
.then((data) => console.log(data));
user({
user_id: "@me",
auth_token: "insert auth_token here",
})
.get_information()()
.then((data) => console.log(data));
anime({
client_id!: string,
q!: string,
limit?: int,
offset?: int,
fields?: string,
})
.animelist()() => Promise<any>
anime({
client_id!: string,
anime_id!: int,
fields?: string,
})
.anime_details()() => Promise<any>
anime({
client_id!: string,
ranking_type!: string,
limit?: int,
offset?: int,
fields?: string
})
.anime_ranking()() => Promise<any>
anime({
client_id!: string,
year!: int,
season!: string,
sort?: string,
limit?: int,
offset?: int,
fields?: string
})
.seasonal_anime()() => Promise<any>
anime({
auth_token!: string,
limit?: int,
offset?: int,
fields?: string
})
.suggested_anime()()
user_animelist({
auth_token!: string,
anime_id!: int,
status?: string,
is_rewatching?: boolean,
score?: int,
num_watched_episodes?: int,
priority?: int,
num_times_rewatched?: int,
rewatch_value?: int,
tags?: string,
comments?: string
})
.update_animelist()() => Promise<any>
user_animelist({
auth_token!: string,
anime_id!: string,
})
.delete_anime_item()() => Promise<any>
user_animelist({
client_id!: string,
user_name!: int,
auth_token?(unless user_name=@me): string,
sort?: string,
limit?: int,
offset?: int,
})
.get_animelist()()
forum({
client_id!: string,
}).forum_boards()() => Promise<any>
forum({
client_id!: string,
topic_id!: int,
limit?: int,
offset?: int,
}).forum_topic_detail()() => Promise<any>
forum({
client_id!: string,
board_id?: int,
subboarrd_id?: int,
limit?: int,
offset?: int,
sort?: string,
q?: string,
topic_user_name?: string,
user_name?: string,
}).forum_topics()() => Promise<any>
manga({
client_id!: string,
q!: string,
limit?: int,
offset?: int,
fields?: string,
}).manga_list()() => Promise<any>
manga({
client_id!: string,
manga_id!: int,
fields?: string,
}).manga_details()() => Promise<any>
manga({
client_id!: string,
ranking_type!: string,
limit?: int,
offset?: int,
fields?: string
}).manga_ranking()() => Promise<any>
user_mangalist({
auth_token!: string,
manga_id!: int,
status?: string,
is_rereading?: boolean,
score?: int,
num_volumes_read?: int,
num_chapters_read?: int,
priority?: int,
num_times_reread?: int,
reread_value?: int,
tags?: string,
comments?: string
}).update_mangalist()() => Promise<any>
user_mangalist({
auth_token!: string,
manga_id!: string,
}).delete_manga_item()() => Promise<any>
user_mangalist({
client_id!: string,
user_name!: int,
auth_token?(unless user_name=@me): string,
sort?: string,
limit?: int,
offset?: int,
})
.get_mangalist()() => Promise<any>
user({
auth_token!: string,
user_id!: "@me",
fields?: string,
}).get_information()() => Promise<any>
FAQs
A simple wrapper around the MAL API hosted on npm.
The npm package myanimelist-api-wrapper receives a total of 2 weekly downloads. As such, myanimelist-api-wrapper popularity was classified as not popular.
We found that myanimelist-api-wrapper 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.