open-index/open-npm huggingface dataset:
npm package: @lvxiaowu/upload_to_oss
Description: upload oss
Author: lvxiaowu
Latest version: 1.0.1


### 将文件上传到oss脚本
****

```js
const uploadToOss = require('@lvxiaowu/upload_to_oss')
const path = require('path')

const config = {
  region: 'your_region',
  accessKeyId: 'your_accessKeyId',
  accessKeySecret: 'your_accessKeySecret',
  bucket: 'your_bucket'
}
const osspath = 'demo/1'
const local = path.resolve(__dirname, './dist')
uploadToOss({
  config,
  local,
  osspath
})
```
npm package: @lvxiaowu/utils
Description: utils for js
Author: lvxiaowu
Latest version: 1.3.0

# @lvxiaowu/utils

## 安装

```vim
npm install @lvxiaowu/utils --save
```

## 使用

```js
import { Utils } from "@lvxiaowu/utils";
```

## 工具方法

-   Utils

    -   cloneDeep
    -   cloneDeepEasier
    -   isEmptyObject
    -   omitValues
    -   omitKeys
    -   hasSomeProp
    -   debounce
    -   throttle
    -   getWordsLength
    -   set

-   Storage, Cookie

    -   setVersion
    -   get
    -   set
    -   remove

-   Device

    -   androidChrome
    -   ipad
    -   iphone
    -   android
    -   webView
    -   wechat
    -   touch

-   RegEx

    -   set
    -   validator
    -   num: 以下都为正则
    -   integer
    -   email
    -   date
    -   time
    -   IDCard
    -   price
    -   mobile
    -   phone
    -   postalcode
    -   zipcode
    -   wechat
    -   name

-   URL

    -   merge
    -   parse
    -   get

-   Calc

    -   add
    -   sub
    -   mul
    -   div
    -   val
    -   extend

-   Time

    -   formatPassTime
    -   formatRemainTime
    -   isLeapYear
    -   isSameDay
    -   monthDays
    -   timeLeft

-   Transform

    -   digitUppercase
    -   digitUppercase
    -   preZero
    -   canvas2file
    -   base642Blob

-   Load

    -   css
    -   cssCode
    -   removeCSSCode
    -   js

-   DOM/$

    -   prefixStyle
    -   composedPath

-   DOM/$(el)

    -   on
    -   off
    -   once
    -   addClass
    -   removeClass
    -   hasClass
    -   getStyle
    -   setStyle
    -   contains
    -   scrollIntoView
    -   DOM/$(el)

-   Keycode

    -   getKeyName

-   Random

    -   getUid
    -   getRandomStr
    -   getRandomInt
    -   getRandomColor

-   DateType
    -   isObj
    -   isPlainObj
    -   isFunc
    -   isNum
    -   isStr
    -   isArr
    -   isBool
    -   isUNN
    -   isEmptyObj
    -   isPromise
    -   isEvent

<!--  以下内容无视  -->

[changelog-image]: https://img.shields.io/badge/changelog-md-blue.svg
[changelog-url]: CHANGELOG.md
[npm-image]: https://img.shields.io/npm/v/@sd/utils.svg
[npm-url]: https://www.npmjs.com/package/@sd/utils