Validity style validator which validates a field against a set of valid options
Create Self Signed Development Certificates
JSON Web Token implementation (symmetric and asymmetric)
the complete solution for node.js command-line programs
Missing keepalive http.Agent
Generate self signed certificates private and public keys
fs read and write streams based on minipass
Inlines img, script and link tags into the same file.
fs read and write streams based on minipass
Get the visual width of a string - the number of columns required to display it
Dead simple Object schema validation
Inquirer input text prompt
A small utility for creating warnings and emitting them.
Simple “Least Recently Used” (LRU) cache
Passport authentication strategy using JSON Web Tokens
A cache object that deletes the least-recently-used items.
Compare strings with Intl.Collator if available, falling back to String.localeCompare otherwise
Inquirer number prompt
Custom error messages in JSON Schemas for Ajv validator
Jest plugin to use babel for transformation.
Shopify API bindings for Node.js
SAML 2.0 node helpers
Simple “Least Recently Used” (LRU) cache
Minimal web-style fetch TypeScript typings
params-validators allows to validate the required/optional parameters in a method
Ruby library like Symfony OptionsResolver
A zero-dependency Ruby gem for validating hash data against schemas with type checking, coercion, required/optional fields, and custom validators.
Define environment variable schemas with type casting, required/optional flags, and defaults. Validates at boot time and provides typed accessors.
Define configuration schemas with required and optional keys, type constraints, default values, and allowed value lists. Validates hashes and raises descriptive errors.
This package adds optional and required params to capistrano. All required parameters are ensured to have a non-null value before the task executes, and all optional parameters will be validated against their :values.
Define required/optional ENV variables with type casting and validation.
A macro-style method that will automatically read the database contraints (null requirements, string length, etc) and enforce those at the model level to keep validation more DRY. Provides many options to customize how automatic it is and what columns it affects.
Valid-env allows you to specify the environment variables that are required, those that are optional, and those that depend on one another, and will throw a useful error message immediately if something is missing.
Optionoids is a Ruby gem designed to provide a simple and flexible way to validate and check the content of option hashes. It allows developers to define checks for required keys, unexpected keys, and value conditions, making it easier to work with configuration options in Ruby applications.
EnvCheck is a lightweight Ruby gem that ensures your required and optional environment variables are present and valid before your app boots. Features smart config discovery (.env_check.yml or config/env_check.yml), comprehensive type validation with 9 built-in validators, .env loading with dotenv, and professional CLI tools. Framework-agnostic design works with Rails 7.1+ through Rails 8.0+, Ruby 3.0+.
This gem allows similar ActiveRecord validates_* commands to be grouped together in blocks and pruned of repeated parameters. How often have you had a block of validation commands in an ActiveRecord object that are repeated, especially :id or :unless options? Does this look familiar? validates_presence_of :hair, :hair_color, :unless => :bald? validates_length_of :hair, :within => 3..15, :unless => :bald? validates_inclusion_of :hair_color, :in => HAIR_COLORS, :unless => bald? Instead, this gem will allow you to replace the above code with: validate_block :unless => :bald? do presence_of :hair, :hair_color length_of :hair, :within => 3..15 inclusion_of :hair_color, :in => HAIR_COLORS end ..which is a great way to DRY your :hair, don't you think? Basically, this gem 1) removes the requirement to have 'validates_' on the front of the commands and 2) passes the options on the validate_block command to each validation command inside the block. The syntax of the validation commands remains the same. Keeping the 'validates_*' prefix on the commands inside the block _will_ work but it is not required.