【文件属性】:
文件名称:kote-api:轻松从BrainyQuote和Eduro等网站获取“每日行情”!
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-18 21:17:07
JavaScript
Kote-api
从BrainyQuotes和Eduro轻松获取当天的报价。
安装
$ npm install --save kote-api
用法
'use strict' ;
const kote = require ( 'kote-api' ) ;
kote . eduro ( ) . then ( user => {
console . log ( user ) ;
// => { quote: 'Don’t cry because it’s over, smile because it happened.' }
} ) ;
kote . brainyQuote ( ) . then ( quote => {
console . log ( quote ) ;
// { quote: 'Hope is but the dream of those wake.'
【文件预览】:
kote-api-master
----.gitattributes(29B)
----test.js(1011B)
----.travis.yml(51B)
----LICENSE(1KB)
----README.md(1KB)
----.editorconfig(190B)
----.gitignore(578B)
----index.js(778B)
----apitest.js(338B)
----package.json(935B)