【文件属性】:
文件名称:dom-smart-plan:Dominion智能定价计划的节点api
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-15 04:32:17
JavaScript
dom-smart计划
Api,用于获取有关当前日的信息
目前这仅适用于弗吉尼亚州的自治权
安装
npm install dom-smart-plan
例子
var smartPlan = require ( 'dom-smart-plan' ) ;
smartPlan . today ( ) . then ( console . log )
原料药
当前,所有方法都返回带有{designation:("A"|"B"|"C"|null)}参数的Promise。
今天()
今天的状态
退货: Promise
明天()
明天的状态
退货: Promise
inDays(天)
获取n天后的状态
参数
天: String | int String | int ,可以为负
退货: Promise
onDate(日期)
根据日期获取状态
参数
日期: Date
退货: Promise
【文件预览】:
dom-smart-plan-master
----index.js(1KB)
----package.json(549B)
----.gitignore(21B)
----README.md(963B)