Search results

231 packages found

NodeJS Require that let you handle module not found error without try/catch

published version 1.1.8, 4 years ago125 dependents licensed under $Apache-2.0
3,314,021

Allows you to optionally include modules without surrounding everything with 'try/catch'

published version 0.1.4, 8 years ago128 dependents licensed under $MIT
1,721,342

A browserify transform that allows optional dependencies in try..catch blocks

published version 1.0.1, 8 years ago33 dependents licensed under $MIT
1,857,125

Optionals for JS - wrapper for possibly undefined values, inspired by Java Optional API

published version 2.3.0, 5 years ago22 dependents licensed under $MIT
1,561,477

Allows you declare optionalPeerDependencies that can be satisfied by the top level module but ignored if they are not.

published version 1.0.1, 8 years ago35 dependents licensed under $Apache-2.0
1,219,810

Extract the options and callback from a function's arguments easily

published version 5.9.0, a year ago8 dependents licensed under $Artistic-2.0
559,892

TypeScript recursive conversion between optional (partial) and undefined properties.

published version 1.0.2, 2 years ago0 dependents licensed under $MIT
207,558

OpenAPI 3 and 3.1 schema generator and validator for Hono, itty-router and more!

published version 2.8.0, 21 days ago8 dependents licensed under $MIT
64,916

Validate and format function arguments ( handles types and optionals)

published version 1.2.1, 9 years ago22 dependents licensed under $MIT
88,337

Codemod to migrate from Lodash get and logical and expressions to optional chaining

published version 1.7.0, 3 years ago0 dependents licensed under $MIT
51,105

Optional (like Java) implementation in TypeScript

published version 3.0.0-alpha.3, 3 years ago120 dependents licensed under $MIT
37,841

Wrap and validate optional values

published version 13.0.0, 5 years ago12 dependents licensed under $Apache-2.0
32,068

A js package to get a string of dynamic and conditional css classes

published version 2.0.2, 3 years ago3 dependents licensed under $MIT
30,582

OpenAPI schema generator and validator for Cloudflare Workers

published version 1.1.1, a year ago3 dependents licensed under $MIT
27,387

Enhanced optional chaining. Safe accessing properties of unknown object without whole validation.

published version 0.2.1, 8 months ago1 dependents licensed under $MIT
16,045

A minimal optional package

published version 1.0.0, 3 years ago0 dependents licensed under $MIT
10,924

Possible Function. Wraps what might be a function, with fallback behavior in case it’s not. Perfect for use in functions that accept optional callback arguments.

published version 1.1.0, 5 years ago12 dependents licensed under $MIT
6,749

Eliminate null/undefined errors in JS...and more!

published version 2.1.0, 7 years ago25 dependents licensed under $MIT
8,687

Object.assign() with super powers

published version 1.9.0, 2 years ago1 dependents licensed under $MIT
7,371

Non-intrusively convert the result of any function or promise to the user's desired style.

published version 3.0.1, 2 years ago19 dependents licensed under $MIT
5,051