# lzx-tools

> 提供了格式化时间，拍平数组的功能

Latest version **1.0.0** (published 2022-07-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install lzx-tools
pnpm add lzx-tools
yarn add lzx-tools
bun add lzx-tools
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-07-10 |
| First published | 2022-07-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | liuzhixue |
| Keywords | lzx, getTime, getFlat |

## Links

- npm: https://www.npmjs.com/package/lzx-tools
- npm.io page: https://npm.io/package/lzx-tools

## Recent versions

- 1.0.0 (latest) — 2022-07-10

## README

## 安装

    npm install lzx-tools

## 导入

    const date = require('lzx-tools')

## 格式化时间

    // 调用 getTime 对时间进行格式化
    const dt =data.getTime(new Date())
    // 结果  2022-07-10  20:09:27
    console.log(dt)

## 拍平数组

    // 待拍平的数组
    const arr = [1, 2, [3, 4, [5, 6]]]
    // 调用 getFlat 对数组进行拍平
    const arr1 = data.getFlat(arr)
    // 结果 [ 1, 2, 3, 4, 5, 6 ]
    console.log(arr1)

## 开源协议

ISC

---
_Source: https://npm.io/package/lzx-tools · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
