@xhmm/utils
nothing
Last updated 6 months ago by xhmm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @xhmm/utils 
SYNC missed versions from official npm registry.
  1. npm i @xhmm/utils
  2. apis :
  • import { 
      // common
      type,
      assertType,
      conditionalObjectMerge,
      conditionalArrayMerge,
      valueExistsInObject,
      hasRepeat,
    
      // browser
      getHiddenInputValues,
    
      // node
      AliOSS,
      DingDingBot
     } from '@xhmm/utils'
    

    当使用 AliOSS 时,需要:

    • npm i ali-oss
    • 提供以下环境变量:
      • AliOSS_KEY
      • AliOSS_SECRET
      • AliOSS_BUCKET // 需要提前在后台创建
      • AliOSS_REGION
      • AliOSS_PUBLIC_HOST // 公网地址 (会替换掉上传后url的域名)
      • AliOSS_PRIVATE_HOST // 内网地址 (用来上传)
      • (optional) AliOSS_TIMEOUT
      • (optional) AliOSS_DIR // 存放目录 (不以能 / 开头但必须以 / 结尾)
    • 运行 AliOSS.init()

    当使用 DingDingBot 时,需要:

    • npm i node-fetch
    • 提供以下环境变量:
      • DING_WEBHOOK // 钉钉机器人的webhook地址

Current Tags

  • 0.0.7                                ...           latest (6 months ago)

7 Versions

  • 0.0.7                                ...           6 months ago
  • 0.0.6                                ...           8 months ago
  • 0.0.5                                ...           8 months ago
  • 0.0.4                                ...           8 months ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 10
Dependencies (1)
Dev Dependencies (8)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |