Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spu-api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spu-api

A Node.js library for Seattle Public Utilities web services.

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Seattle Public Utilities API

A Node.js library for Seattle Public Utilities web services.

Note: this library is in no way affiliated, endorsed, or otherwise acknowledged by Seattle Public Utilities.

API

function getCollectionDays(address, cb)

  • address: (string) A Seattle house number and street.
  • cb: (function) A callback that will receive either an error or an array representing the next few collection days.

Each collection day object has the following properties:

  • date: (Date) The day's date.
  • foodAndYardWaste: (boolean) True if food and yard waste bins will be collected.
  • garbage: (boolean) True if garbage bins will be collected.
  • recycling: (boolean) True if recycling bins will be collected.

Example

var spu = require('spu-api');

spu.getCollectionDays('123 MAIN ST', function (err, days) {
    if (err) {
        return console.error(err);
    }

    console.log(days);
});

License

MIT

FAQs

Package last updated on 22 Jun 2017

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc