# @iyowei/not-empty-string

> 如果是字符串，并且非空（`''`），则返回 `true`，否则 `false`。

Latest version **1.0.3** (published 2021-12-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @iyowei/not-empty-string
pnpm add @iyowei/not-empty-string
yarn add @iyowei/not-empty-string
bun add @iyowei/not-empty-string
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-12-18 |
| First published | 2021-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=12.20.0 |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | itonyyo |
| Keywords | iyowei |

## Links

- npm: https://www.npmjs.com/package/@iyowei/not-empty-string
- Repository: https://github.com/iyowei/not-empty-string
- Homepage: https://github.com/iyowei/not-empty-string#readme
- Issues: https://github.com/iyowei/not-empty-string/issues
- npm.io page: https://npm.io/package/@iyowei/not-empty-string

## Recent versions

- 1.0.3 (latest) — 2021-12-18
- 1.0.2 — 2021-12-10
- 1.0.1 — 2021-12-10
- 1.0.0 — 2021-12-10

## README

# notEmptyString(str)

> 如果是字符串，并且非空（`''`），则返回 `true`，否则 `false`。

## 使用

```javascript
import notEmptyString from '@iyowei/esm-not-empty-string';

console.log('notEmptyString("")', notEmptyString("")); // false
console.log('notEmptyString("text")', notEmptyString("text")); // true

console.log("notEmptyString(true)", notEmptyString(true)); // false
console.log("notEmptyString(1)", notEmptyString(1)); // false
console.log('notEmptyString(NaN)', notEmptyString(NaN)); // false
console.log('notEmptyString(null)', notEmptyString(null)); // false
```

## 安装

[![Node version](https://img.shields.io/badge/node.js-%3E%3D12.20.0-brightgreen?style=flat&logo=Node.js)](https://nodejs.org/en/download/)

```shell
# Pnpm
pnpm add @iyowei/not-empty-string

# yarn
yarn add @iyowei/not-empty-string

# npm
npm add @iyowei/not-empty-string
```

## 参与贡献
![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)

---
_Source: https://npm.io/package/@iyowei/not-empty-string · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
