3.10.0 • Published 10 days ago

@morev/utils v3.10.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 days ago

Promo image of @morev/utils package

Stability of "master" branch License: MIT Last commit Release version GitHub Release Date Keywords

@morev/utils

100+ fully typed JavaScript utilities for everyday use. \ 100+ TypeScript utility types.


IMPORTANT: The library is not transpiled.

By keep transpiling libraries we push web backward with legacy code which is unneeded for most of the users.

If you need to support legacy users, you can optionally transpile the library in your build pipeline.

Installation

# Using `yarn`
yarn add @morev/utils

# Using `npm`
npm install @morev/utils

# Using `pnpm`
pnpm add @morev/utils

Usage

Just import/require needed utilities/types and use them :)

import { clamp } from '@morev/utils';
import type { ArrayOf } from '@morev/utils';

// CJS
const { arrayShuffle } = require('@morev/utils');

Acknowledgments

  • fast-copy for deepClone and deepCloneStrict utilities;
  • fast-equals for deepEqual and deepEqualCircular utilities;
  • ohash for hash utility;
  • type-fest for many utility types.
  • object-to-formdata utility mostly inspired by object-to-formdata package, but public API and implementation is a bit different according to my experience and needs.
  • awaity for an inspiration and initial code base of the asyncArray utility.
  • set-cookie-parser for the basic implementation of the parseResponseCookie utility and tests.
  • cookie for the basic implementation of the serializeCookie utility and its tests.
  • compute-gcd for the implementation of the gcd utility and its tests.
3.10.0

10 days ago

3.9.0

1 month ago

3.8.0

2 months ago

3.7.0

2 months ago

3.6.0

3 months ago

3.5.0

4 months ago

3.4.0

4 months ago

3.3.2

4 months ago

3.1.0

4 months ago

3.0.1

4 months ago

2.3.0

10 months ago

2.5.0

10 months ago

2.4.1

10 months ago

2.4.0

10 months ago

2.7.0

8 months ago

2.6.0

9 months ago

2.8.1

8 months ago

2.8.0

8 months ago

2.7.1

8 months ago

2.2.0

11 months ago

2.1.0

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago