# @sparkwave/standard

> Standard library for JavaScript/TypeScript

Latest version **2.34.2** (published 2024-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sparkwave/standard
pnpm add @sparkwave/standard
yarn add @sparkwave/standard
bun add @sparkwave/standard
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.34.2 |
| Published | 2024-02-21 |
| First published | 2020-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 192.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | spencerg, agyemanjp, eltharim, hypothesizemachineuser |
| Keywords | standard, library, collections, concurrency, datetime, functional, numeric, object, text, async, web |

## Links

- npm: https://www.npmjs.com/package/@sparkwave/standard
- Repository: https://github.com/hypothesize/standard.js
- Homepage: https://github.com/Hypothesize/standard.js#readme
- Issues: https://github.com/Hypothesize/standard.js/issues
- npm.io page: https://npm.io/package/@sparkwave/standard

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 2.34.2 (latest) — 2024-02-21
- 2.34.1 — 2024-02-08
- 2.33.1 — 2022-09-06
- 2.33.0 — 2022-06-04
- 4.0.3 — 2022-06-02
- 2.31.0 — 2022-03-10
- 2.30.0 — 2021-08-31
- 2.29.1 — 2021-08-09
- 2.29.0 — 2021-08-09
- 2.28.1 — 2021-06-24
- 2.28.0 — 2021-06-15
- 2.27.0 — 2021-03-31
- 2.26.1 — 2021-03-17
- 2.26.0 — 2021-02-27
- 2.25.0 — 2021-01-21
- … 26 more at https://npm.io/package/@sparkwave/standard/versions

## README

# standard.js
A standard library for JavaScript/TypeScript

## Features
- Lazy iterable combinators such as _map_, _filter_, _reduce_, etc.
- Lazy async iterable combinators such as _mapAsync_, _filterAsync_, etc.
- Fluent iterable containers: _Sequence_, _Set_, _Array_, _ArrayNumeric_, _Dictionary_
- Functional combinators such as _flip_, _curry_, etc.
- Async combinators such as _promisify_, _sleep_, etc.
- Statistical functions such as _mean_, _median_, _quartiles_, _variance/standard deviation_, etc.
- Advanced _string_, _date-time_, and _numeric_ functions
- Utility _types_, _type guards_, and _value helpers_


## Install
`npm install --save @sparkwave/standard`


## Usage
```ts
// import specific functions from specific modules
import { mapAsync, ZipAsync, isAsyncIterable /*, ...*/ } from "@sparkwave/standard/collections/combinators"
import { keys, entries, pick, omit  /*, ...*/ } from "@sparkwave/standard/object"
import { sleep, promisify } from "@sparkwave/standard/async"

// import everything from a module
import * as containers from "@sparkwave/standard/collections/containers"
const numArray = new containers.Array([1, 2, 3])

// import everything from package
import * as stdlib from "@sparkwave/standard"
type Predicate<T> = stdlib.Predicate<T>
```

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