bgm-fetch

2.0.1 • Public • Published

bgm-fetch

NPM version NPM download Build Status: Linux

import bgm from 'bgm-fetch'
 
// Retrieve the animes that are currently airing
// Format by weekday
bgm({ format: true })
  .then(data => console.log(data))
  .catch(error => console.error(error))
 
// Retrieve specific season
bgm({
  year: 2015,
  season: 7
})
 
// Use custom proxy, default one: 'https://cdn.rawgit.com/bangumi-data/bangumi-data/master/data/items/{year}/{season}.json'
bgm({ proxy: 'https://xxx.com/api.json' })

Related

  • bgm - CLI of this module.

License

MIT © EGOIST

Readme

Keywords

none

Package Sidebar

Install

npm i bgm-fetch

Weekly Downloads

1

Version

2.0.1

License

MIT

Last publish

Collaborators

  • kchan
  • rem