Search results

108 packages found

Convert a value to an array

published version 3.0.0, 4 years ago1217 dependents licensed under $MIT
84,953,969

Ensure directories exist before writing to them.

published version 2.0.1, 2 years ago29 dependents licensed under $MIT
5,622,368

Async module-loading library and protocol for bundlers/loaders targeting isomorphic apps and Node.js.

published version 0.0.0, 10 years ago135 dependents licensed under $MIT
2,790,193

Ensure runtime type safety and perform type coercion if needed.

published version 1.5.1, 4 years ago11 dependents licensed under $MIT
280,326

Ensures a value is a valid error by making it one if not

published version 4.0.0, 3 years ago21 dependents licensed under $MIT
48,829

Additional mongoose schema validations

published version 1.7.1, 3 years ago1 dependents licensed under $MIT
8,465

Human friendly file system utilities for Node.js

published version 2.3.7, 2 days ago7 dependents licensed under $MIT
11,566

Manipulate strings with prefixes and suffixes.

published version 1.1.1, 6 years ago7 dependents licensed under $MIT
3,530

When you have an error-ish but what you really want is an Error

published version 2.0.0, 6 months ago8 dependents licensed under $MIT
7,092

Ensures value is defined (i.e., neither undefined nor null).

published version 1.0.0, 5 years ago1 dependents licensed under $MIT
6,193

A mongoose plugin, improving 'Model.ensureIndexes' method, allowing also deletion of unused indexes and reindexing with changed options.

published version 0.1.4, 10 years ago1 dependents licensed under $MIT
2,304

Retry a function until or while it passes an assertion

published version 1.2.0, a year ago0 dependents licensed under $Apache-2.0
2,365

[![install size](https://packagephobia.now.sh/badge?p=ctor-ensure)](https://packagephobia.now.sh/result?p=ctor-ensure) [![npm version](https://badge.fury.io/js/ctor-ensure.svg)](https://badge.fury.io/js/ctor-ensure) [![codecov](https://codecov.io/gh/Blvck

published version 1.0.18, 3 years ago0 dependents licensed under $GPL-3.0
1,299

mongoose validation to ensure referenced object id exists

published version 0.10.0, 3 years ago4 dependents licensed under $MIT
1,130

A lightweight utility to check the presence and validity of environment variables, as specified by a Zod schema

published version 0.4.3, a month ago0 dependents licensed under $MIT
951

Assertions to do some runtime type checking

published version 1.0.7, 10 months ago1 dependents licensed under $MIT
664

Ensures that the file path exists.

published version 1.0.7, 6 years ago1 dependents licensed under $MIT
233

Create all directories on the way to the path.

published version 1.1.0, 6 years ago4 dependents licensed under $MIT
206

Ensure that node is run as the correct version, and uses --harmony, if needed

published version 0.5.18, 9 years ago3 dependents licensed under $MIT
232

You are up a creek; here is your paddle. Paddle provides a way ensuring that JS asynchronous callbacks are actually ran, or calls a provided error function upon timeout.

published version 1.0.0, 14 years ago0 dependents
197