@1f8/commons 中文文档教程
在 1F8 应用程序之间共享通用代码以实现更快的开发
standard usage
import
yarn add @1f8/commons
usage
import * as calc from '@1f8/commons/calc'
import * as util from '@1f8/commons/util'
let x = calc.round(4.015) // 4.02
await util.sleep(5)
import * as date from '@1f8/commons/date'
let x = date.today // todays date
Common code to be shared among 1F8 apps to enable faster development
standard usage
import
yarn add @1f8/commons
usage
import * as calc from '@1f8/commons/calc'
import * as util from '@1f8/commons/util'
let x = calc.round(4.015) // 4.02
await util.sleep(5)
import * as date from '@1f8/commons/date'
let x = date.today // todays date