Socket
Socket
Sign inDemoInstall

weather-api-data

Package Overview
Dependencies
3
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

4

package.json
{
"name": "weather-api-data",
"version": "1.0.0",
"description": "",
"version": "1.0.1",
"description": "NPM package that gets information about weather",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -1,3 +0,12 @@

const weather = require('./index.js')
// using await
const weather = require('weather-api-data');
async function getWeather() {
const data = await weather.loction('manama');
console.log(data);
}
getWeather();
// using .then
weather.loction('manama').then(weather => console.log(weather));
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