check whether a value is a non-empty array
Copy a descriptor from object A to object B
string-argv parses a string into an argument array to mimic process.argv. This is useful when testing Command Line Utilities that you want to pass arguments to.
Return true if a value is a valid glob pattern or patterns.
Work with IANA language tags.
A function to check whether a prop is valid for HTML and SVG elements
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
Brand checking of React Elements.
Parses set-cookie headers into objects
Is this value a JS ArrayBuffer?
JSON for Humans
Is this value a JS SharedArrayBuffer?
Detect if a string is a data URL
Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.
Regular expression for matching semver versions
Balena specific semver utility methods
Match human-quality input to potential matches by edit distance.
Array manipulation, ordering, searching, summarizing, etc.
Give me a string and I'll tell you if it's a valid npm package name
General purpose glob-based configuration matching.
Convert a string to a valid JavaScript identifier
Returns true if a value has the characteristics of a valid JavaScript data descriptor.
Simple data set export to Excel xlsx file
Remove aliases from a GraphQL document
Array validations for Rails (e.g. Postgres jsonb columns)
A custom validation for your Active Model that check if an array is included in another one
The hashy_validator gem provides the HashyArrayValidator, a custom Active Model validator designed to validate arrays of hashes within ActiveRecord model attributes. Utilizing the HashValidator gem, on top of hash_validator gem. The gem includes a comprehensive test suite using the minitest framework.
Schemacop validates ruby structures consisting of nested hashes and arrays against simple schema definitions.
html_attributes provide helper methods to convert arrays and hashes to valid html attributes.
Provides subset validation for serialized arrays or sets in Active Record
Provides a DSL for common validation formats like Date, Array, DateTime etc.
Simple DSL to design validation schemas for JSON document (or Hash / Array structure)
Manage text field attribute serialized as an array, hash, etc. Add per-item validation
Validate Ruby data structures against JSON Schema definitions with support for type checking, required properties, pattern matching, numeric ranges, enums, and array validation.
The valid_array gem provides to create an Array that enforces certian properties. Each element added to the array is passed to a validator function written by you. This function can raise errors, drop items or change them. vaild_array also provides compatibility with the typed-array gem. There is both 'valid_array/typed_array' which imports to `ValidArray::TypedArray` and a fully compatible 'valid-array' which passes 'valid-array's own test suite.
This gem allows you to pass in a EDIFACT string or file, and returns an array structure, to enable additional processing and validation