🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@morev/utils

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@morev/utils

Collection of JavaScript / TypeScript utilities

3.13.1
latest
Source
npm
Version published
Weekly downloads
4.6K
-17.12%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

javascript

FAQs

Package last updated on 30 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts