Search results

108 packages found

Convert a value to an array

published version 3.0.0, 4 years ago1232 dependents licensed under $MIT
126,275,304

Ensure directories exist before writing to them.

published version 2.0.1, 3 years ago29 dependents licensed under $MIT
9,001,174

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

published version 0.0.0, 10 years ago142 dependents licensed under $MIT
4,782,351

Ensure runtime type safety and perform type coercion if needed.

published version 1.5.1, 4 years ago12 dependents licensed under $MIT
406,739

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

published version 4.0.0, 4 years ago22 dependents licensed under $MIT
78,234

Additional mongoose schema validations

published version 1.7.1, 4 years ago1 dependents licensed under $MIT
12,142

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

published version 1.0.0, 6 years ago1 dependents licensed under $MIT
12,365

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
5,043

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

published version 0.4.3, 6 months ago0 dependents licensed under $MIT
7,666

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

published version 2.0.0, 10 months ago8 dependents licensed under $MIT
7,394

Human friendly file system utilities for Node.js

published version 3.1.2, 3 months ago9 dependents licensed under $MIT
7,393

Retry a function until or while it passes an assertion

published version 1.2.0, a year ago0 dependents licensed under $Apache-2.0
4,689

Create all directories on the way to the path.

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

Manipulate strings with prefixes and suffixes.

published version 1.1.1, 6 years ago7 dependents licensed under $MIT
2,099

mongoose validation to ensure referenced object id exists

published version 0.10.0, 4 years ago4 dependents licensed under $MIT
1,522

Assertions to do some runtime type checking

published version 1.0.7, a year ago1 dependents licensed under $MIT
904

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

published version 0.5.18, 10 years ago3 dependents licensed under $MIT
604

Ensures that the file path exists.

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

Make sure a directory exists and create the non-exist ones.

published version 0.1.0, 9 years ago4 dependents licensed under $MIT
291

[![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
269