npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

foxifyjs

v1.1.9

Published

Node.JS Wrapper for Anifox.moe REST API

Downloads

2

Readme

Any contribution is welcomed. Table of contents:

Installation

npm install --save foxifyjs

Usage

const foxify = require('foxifyjs')

Methods

anime

anime.get()

Get information about a particular anime

| Parameter | Type | Description | | --- | --- | --- | | id | int | id of anime to get |

const foxify = require('foxifyjs')
const { anime } = foxify

const id = 20
anime.get(id)
  .then(data => console.log(data))
  .catch(err => console.log(err))

Returns an object with a data property(object) indexed by malID, with a single Anime model

anime.getAll()

Get information about all anime, (optionally filtered by a type)

| Parameter | Optional | Type | Description | | --- | --- |--- | --- | | limit | Yes | integer | Limits the amount of search results returned |

const foxify = require('foxifyjs')
const { anime } = foxify

anime.getAll()
  .then(data => console.log(data))
  .catch(err => console.log(err))

Returns an object with a data property(object) indexed by malID, containing all the Anime model from Anifox

anime.getAllType()

Get information about all anime, (optionally filtered by a type)

| Parameter | Optional | Type | Description | | --- | --- |--- | --- | | type | No | string | The type, must be either TV, ONAs, OVAs, Specials or Movies | | limit | Yes | integer | Limits the amount of search results returned |

const foxify = require('foxifyjs')
const { anime } = foxify

anime.getAll('TV')
  .then(data => console.log(data))
  .catch(err => console.log(err))

Returns an object with a data property(object) indexed by malID, containing all the Anime model from Anifox filtered by type

anime.getAiring()

Get the current airing anime

const foxify = require('foxifyjs')
const { anime } = foxify

anime.getAiring()
  .then(data => console.log(data))
  .catch(err => console.log(err))

Returns an object with a data property(object) indexed by malID, containing all the Anime model that are currently airing

anime.search()

Get anime by a search query

| Parameter | Type | Description | | --- | --- | --- | | query | string | string of an anime to search for |

const foxify = require('foxifyjs')
const { anime } = foxify

anime.search('Naruto')
  .then(data => console.log(data))
  .catch(err => console.log(err))

Returns an object with a data property(object) indexed by malID, containing all the Anime model that match the query

season

season.get()

Get a list of anime for a given season, type is optional and can be ommitted but will return every anime for that season (not filtered by Ovas, Movies etc)

| Parameter | Optional | Type | Description | | --- | --- |--- | --- | | year | No | number | The year | | season | No | string | The season, must be either spring, summer, fall or winter | | type | Yes | string | The type, must be either TV, ONAs, OVAs, Specials or Movies |

const foxify = require('foxifyjs')
const { season } = foxify

const season = 'winter'
const year = '2016'
const type = 'TV'

season.get(season, year, type)
  .then(data => console.log(data))
  .catch(err => console.log(err))

Returns an object with a data property(object) indexed by malID, containing all the Anime model the given season

season.getCurrent()

Get a list of anime for the current season

const foxify = require('foxifyjs')
const { season } = foxify

season.getCurrent()
  .then(data => console.log(data))
  .catch(err => console.log(err))

Returns an object with a data property(object) indexed by malID, containing all the Anime model the current season

episode

episode.get()

Get a list of episode(s) for a given anime, if no episodeNumber is provided, will return all episodes

| Parameter | Optional | Type | Description | | --- | --- |--- | --- | | id | No |int | id of anime to get | | episodeNumber | Yes | string | episode number to search for

const foxify = require('foxifyjs')
const { episode } = foxify

const id = 20
const episodeNumber = '125'

episode.get(id, episodeNumber)
  .then(data => console.log(data))
  .catch(err => console.log(err))

Returns an object with a data property array containing a list of Episode model for the provided anime

Data models

Anime data model

Licensor/Producer/fromType/Genres/Synopsis may not always exist

| Property | Type | Description | | --- | --- | --- | | malID | int | id for the anime | | title | string | title of the anime | | type | string | type of anime (TV, OVA etc) | | picture | url | 167x242 image for the anime | | synopsis | string | description about the anime | | licensor | string | licensor for the anime | | link | string | link to the MAL page for this anime | | genres | array | list of genres the anime is | | producers | array | list of producers for the anime | | fromType | string | source material type | | nbEp | int | number of episodes the anime has | | releaseDate | int | release date (stored as a unix timestamp) |

Episode data model

Resolution may not always exist

| Property | Type | Description | | --- | --- | --- | | malID | int | id for the anime | | epNumber | string | episode number | | category | string | type of episode (raw or english translated) 1_2 == english, 1_4 == raw | | resolution | string | resolution (either as a value e.g. 1080p or 1920x1080) | | aired | int |unix timestamp for the airing date | | link | url | url to the nyaa page | | torrent | torrent file url | episode number | | magnet | magnet url | episode number |

License

This project is licensed under the MIT License - see the LICENSE.md file for details