New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

paperbackswap

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paperbackswap

Node.js bindings for PaperbackSwap API

latest
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

Node.js bindings for the Paperbackswap API.

Paperbackswap.com is a website which facilitates book swaps between members.

The module will poll the Paperbackswap API once a minute and emit a "books" event with any books which have been posted in the last minute. The timeout option controls how often the API is polled.

Example

var PBS = require('paperbackswap');

var options = {};
options.timeout = 30 * 1000;   // poll once every 30 seconds

var agent = new PBS(options);

agent.on('books', function (books) {
    books.forEach(function (book) {
        console.log(book);
    });
});

agent.on('error', function (err) {
    // Handle error
});

agent.start();

Installation

npm install paperbackswap

License

MIT

FAQs

Package last updated on 28 Dec 2013

Did you know?

Socket

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