# jm-utils

> utils

Latest version **1.0.6** (published 2020-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install jm-utils
pnpm add jm-utils
yarn add jm-utils
bun add jm-utils
```

## 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.6 |
| Published | 2020-05-03 |
| First published | 2017-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 41.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jeff YU |
| Maintainers | jeffyu |
| Keywords | javascript, jm-utils |

## Links

- npm: https://www.npmjs.com/package/jm-utils
- Repository: https://github.com/core
- Issues: https://github.com/core/issues
- npm.io page: https://npm.io/package/jm-utils

## Recent versions

- 1.0.6 (latest) — 2020-05-03
- 1.0.5 — 2020-02-07
- 1.0.4 — 2020-02-07
- 1.0.3 — 2018-01-24
- 1.0.2 — 2018-01-17
- 1.0.1 — 2017-06-10
- 1.0.0 — 2017-06-10
- 0.0.3 — 2017-06-08
- 0.0.2 — 2017-06-07
- 0.0.1 — 2017-05-27

## README

# jm-utils
utils

## 参数转换

undefined 值不转换，直接返回undefined

- arg2bool

参数值转换为布尔值

'true', true, >0的数字和数字串 转为 true

其他转为false

- arg2number

参数值转换为数字值

'true', true 转为 1

数字串直接转数字

其他都转为0

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