Socket
Socket
Sign inDemoInstall

douban-api-v2

Package Overview
Dependencies
6
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    douban-api-v2

豆瓣Api V2


Version published
Weekly downloads
6
increased by500%
Maintainers
1
Install size
878 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 10 Mar 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc