【文件属性】:
文件名称:时间戳2
文件大小:7KB
文件格式:ZIP
更新时间:2021-02-16 07:15:56
JavaScript
天气
天气是用于获取天气信息的模块。
安装
npm install weather-js
用法
var weather = require ( 'weather-js' ) ;
// Options:
// search: location name or zipcode
// degreeType: F or C
weather . find ( { search : 'San Francisco, CA' , degreeType : 'F' } , function ( err , result ) {
if ( err ) console . log ( err ) ;
console . log ( JSON . stringify ( result , null , 2 ) ) ;
} ) ;
[
{
" location " : {
【文件预览】:
timestamp2-master
----.istanbul.yml(52B)
----.gitattributes(213B)
----LICENSE.txt(1KB)
----.travis.yml(110B)
----test()
--------test-all.js(4KB)
----README.md(3KB)
----.editorconfig(259B)
----.gitignore(107B)
----index.js(5KB)
----CHANGELOG.md(473B)
----package.json(1KB)