openweatherapi-js-sdk:OpenWeatherMap.org Javascript SDK

时间:2021-05-31 09:20:07
【文件属性】:
文件名称:openweatherapi-js-sdk:OpenWeatherMap.org Javascript SDK
文件大小:49KB
文件格式:ZIP
更新时间:2021-05-31 09:20:07
api weather sdk js openweathermap openweatherapi-js-sdk 即用型 javascript 库,用于使用 OpenWeatherMap.org 免费服务。 在上请求一个免费的 api 密钥。 支持打字稿 :check_mark_button: 安装 使用 npm: // using npm npm install openweatherapi - js - sdk -- save // using yarn yarn add openweatherapi - js - sdk 如何使用 实例化 从已安装的库中导入createAPI函数,并使用您现有的 api 密钥创建您的 api,如果您没有密钥,请在上请求一个免费的。 const { createAPI } = require ( "openweatherapi-js-sdk" ) ; const api = createAPI ( "your_api_key" ) ; 当前天
【文件预览】:
openweatherapi-js-sdk-master
----.gitignore(2KB)
----package.json(832B)
----package-lock.json(204KB)
----src()
--------weather-api()
--------forecast-api()
--------index.js(308B)
----jest.config.js(6KB)
----tsconfig.json(504B)
----types()
--------weather-api()
--------forecast-api()
--------index.d.ts(1KB)
----.github()
--------workflows()
----README.md(4KB)
----example.js(302B)
----tests()
--------units()

网友评论