bgm-fetch
本库用于获取番组更新,返回一个 Promise 给米娜桑。
Last updated 3 years ago by rem .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bgm-fetch 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.1                                ...           latest (3 years ago)

11 Versions

  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.0                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.4                                ...           5 years ago
  • 0.0.31                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.22                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.11                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (6)

Copyright 2014 - 2016 © taobao.org |