文件名称:simple-opening-times
文件大小:37KB
文件格式:ZIP
更新时间:2024-05-29 00:45:42
JavaScript
开放时间 一个简单的库来处理打开和关闭时间 (当前仅每天运行,将来的功能旨在处理一周中的某几天,特定的日期/日期排除等)。 例子 import openingTimes from 'simple-opening-times' const open = ( ) => { console . log ( 'Working nine to five' ) } const close = ( ) => { console . log ( 'Whilst managing a healthy work/life balance' ) } openingTimes ( [ '09' , '17' ] , open , close ) 笔记 import openingTimes from 'simple-opening-times' // Will check every hour if we nee
【文件预览】:
simple-opening-times-master
----.babelrc(25B)
----index.js(2KB)
----package.json(604B)
----.gitignore(13B)
----simple-opening-times.spec.js(4KB)
----README.md(780B)
----yarn.lock(127KB)