douban-api-v2

1.0.0 • Public • Published

douban-api-v2

豆瓣Api V2

Install

Install using npm:

    $ npm install douban-api-v2

Usage

const client = require('douban-api-v2')
 
const book = new client.Book()
book.findOne('熊猫')
.then(res => console.log(res))
.catch(err => console.error(err))
 
const movie = new client.Movie()
movie.findOne('熊猫')
.then(res => console.log(res))
.catch(err => console.error(err))
 
const music = new client.Music()
music.findOne('熊猫')
.then(res => console.log(res))
.catch(err => console.error(err))

Test

Run tests:

    $ npm test

Tested with node.js v4.0+

License

The MIT License (MIT)

Copyright (c) 2016

Readme

Keywords

Package Sidebar

Install

npm i douban-api-v2

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • wzbg