# @do-while-for-each/common

> Common functionality

Latest version **3.0.5** (published 2025-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @do-while-for-each/common
pnpm add @do-while-for-each/common
yarn add @do-while-for-each/common
bun add @do-while-for-each/common
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.5 |
| Published | 2025-11-22 |
| First published | 2021-03-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 137.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Do\|While\|For\|Each |
| Maintainers | dwfe |

## Links

- npm: https://www.npmjs.com/package/@do-while-for-each/common
- Repository: https://github.com/dwfe/common
- Issues: https://github.com/dwfe/common/issues
- npm.io page: https://npm.io/package/@do-while-for-each/common

## Recent versions

- 3.0.5 (latest) — 2025-11-22
- 3.0.4 — 2025-11-22
- 3.0.3 — 2024-08-18
- 3.0.2 — 2023-11-21
- 2.0.1 — 2023-01-01
- 1.2.50 — 2022-12-25
- 1.2.49 — 2022-12-09
- 1.2.48 — 2022-10-22
- 1.2.47 — 2022-08-21
- 1.2.46 — 2022-08-03
- 1.2.45 — 2022-08-03
- 1.2.44 — 2022-08-03
- 1.2.43 — 2022-08-03
- 1.2.42 — 2022-08-03
- 1.2.41 — 2022-08-03
- … 48 more at https://npm.io/package/@do-while-for-each/common/versions

## README

## async

`delayAsync`  
`timeout`  
`debounce`  
`throttle`  
`nextTick`  
`rAFQueueLast`

## converter

`strToBase64`  
`base64ToStr`
`B64`: `fromUrl`, `decodeUnicode`, `encodeUnicode`

## event-emitter

`EventEmitter`, `Listener`

observable things:

- `createObsObject() => IObsObject & T`
- `createObsArray() => IObsArray`
- `createObsMap() => IObsMap`
- `createObsSet() => IObsSet`

## object

`getPropDescriptor`  
`recognizePropType`, `IPropType`

## type

`isEqual`, `IEqualityCheckOpt`  
`isJustObject`, `isNotJustObject`  
`isPrimitive`, `isNotPrimitive`  
`isPrimitiveTypeWrapper`

`isFunction`  
`isSomethingANumber`  
`isString`

## ungrouped

`assert`  
`cloneSimple`  
`getExecFunctionName`  
`guid`  
`millisecToMinWithSec`, `strMillisecToMinWithSec`  
`noop`, `noop2`, `noop3`, `noop4`, `noop5`, `noop6`, `noop7`  
`randomIntFromRange`, `randomIntFromRangeExclude`

## url

`complementPath`  
`IPath`, `IPathnameParams`  
`getURL`  
`hasProtocol`  
`isPathEqual`  
`normalizePath`  
`normalizePathname`  
`normalizeHash`  
`normalizeSearch`  
`pathStrFromUrlStr`  
`pathToString`

## contracts

`IClassConstructor`  
`IStoppable`  
`IDisposable`  
`IRunMode`  
`IAnyObject`  
`ISuccess`, `IFailure`, `IResult`, `SUCCESS`, `FAILURE`

---
_Source: https://npm.io/package/@do-while-for-each/common · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
