open-index/open-npm huggingface dataset:
npm package: @miop/common-utils
Description: Merge functional methods in the project
Latest version: 0.0.1

# @miop/common-utils

Merge functional methods in the project

## Using

```shell
npm i @miop/common-utils
```

## Common Methods

```javascript
import { getUniqueId, getRandomString, isValidUrl, resolveExt } from '@miop/common-utils';

// getUniqueId() => 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'
// getUniqueId(true) => xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx
// getRandomString(32) => xxxxxxxxxxxxyxxxyxxxxxxxxxxxxxxx
// isValidUrl('https://www.apiyux.com')
// resolveExt('aa.png')
```

## Date Format

```javascript
import { getDateFormat } from '@miop/common-utils';

// getDateFormat(null, 'yyyy-MM-dd hh:mm:ss');
```

## Tags Format

```javascript
import { fmtTags, removeHTMLTag } from '@miop/common-utils';
```

# Strings Format

```javascript
import { trimAll, trimLeft, trimRight, trimLR, strTrimAll, strTrimLR } from '@miop/common-utils';
```