# nb-console-tools

> 管理台项目常用工具集

Latest version **1.0.1** (published 2020-12-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install nb-console-tools
pnpm add nb-console-tools
yarn add nb-console-tools
bun add nb-console-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.1 |
| Published | 2020-12-26 |
| First published | 2020-12-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | wangshuaibing |
| Keywords | format, escape, ie时间适配 |

## Links

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

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-12-26
- 1.0.0 — 2020-12-26

## README

### 安装方式
```
npm install nb-console-tools
```
### 导入方式
```
const nbTools = require('nb-console-tools')
```
### 时间转化
```
// 时间转YYYY/MM/DD HH:mm:ss
nbTools.toXie(new Date());

// 时间转YYYY-MM-DD HH:mm:ss
nbTools.toHeng(new Date());
```
### HTML 转换
```
// 得到字符串
nbTools.htmlEscape('<h1 title="hhhh">&amp;</h1>');

// 得到 HTML
nbTools.htmlUnEscape('&lt;h1 title=&quot;hhhh&quot;&gt;&amp;amp;&lt;/h1&gt;');
```

### 协议
该包遵循ISC协议

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