is-it-raining

1.0.0 • Public • Published

is-it-raining

is-it-raining is a simple package used to tell you if it's raining.

You can pass in an IP adress as so:

var isItRaining = require("is-it-raining")
isItRaining("xxx.xx.xx.xx").then((data)=>{
    console.log(data)
}).catch((err)=>{
    console.log(err)
})

Or leave it out and it will use the IP adress of the computer running the node script

var isItRaining = require("is-it-raining")
isItRaining().then((data)=>{
    console.log(data)
}).catch((err)=>{
    console.log(err)
})

Package Sidebar

Install

npm i is-it-raining

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.49 kB

Total Files

3

Last publish

Collaborators

  • ryanhcode