Validity style validator to ensure the length of a property
Set a function's length property
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Robustly get the length of a Typed Array
Get the byteLength out of a DataView, robustly.
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
JSON Web Token implementation (symmetric and asymmetric)
A wide-character aware text alignment function for use on the console or with fixed width fonts.
Create Self Signed Development Certificates
Get utf8 byte length of string
Get and validate the raw body of a readable stream.
Generate a cryptographically strong random string
No description provided.
Lazy-evaluating list of files, based on globs or regex patterns
Port of the OpenBSD bcrypt_pbkdf function to pure JS
Generate or verify a Proof Key for Code Exchange (PKCE) challenge pair
A regex to match any full character, considering weird character ranges.
A [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available.
A minimal UTF8 implementation for number arrays.
A minimal base64 implementation for number arrays.
Convert values with PostCSS (e.g. ms -> s)
Read a chunk from a file
Calculates the length of a line, perfect for paths or routes.
No description provided.
Introspects your database string field maximum lengths and automatically defines length validations.
tweet length check validator
Introspects your database string field maximum lengths and automatically defines length validations.
This gem resolves basically two problems. --- 1. MySQL for strings(VARCHAR(255)) by default has limit 255 characters. And when developer left this attribute without any length validation, then it's possible to face with situation when user unintentionally or intentionally will pass in text field more characters. So, then, probably you will get 500... --- 2. PostgreSQL. The maximum number of characters for variable unlimited length types (text, varchar) is undefined. There is a limit of size in bytes for all string types: In any case, the longest possible character string that can be stored is about 1 GB. And when developer left this attribute without any length validation, then it's possible to face with situation when user unintentionally or intentionally will try to full up your database with lots of GB of 'important' info. --- Both of this cases, I guess, are not very pleasant. This gem adds default length validation for all string attributes. Except those which are already vlidated in standart rails way.
Introspects your database string field maximum lengths and automatically defines length validations.
Adds support for validating the format/length of email addresses in ActiveRecord
Simple way to add Active Record Validations to models and views through the limits established in your database.
DefaultLimitAttributes class will add validation of max length for all ActiveRecord model attributes automatically which base on size of fields in database
Scans ActiveRecord models and adds automatic validations based on null, max length etc.
Adds support for validating the format/length of email addresses in ActiveRecord
Validate http request content length vs actual for elements such as img, link, etc..
Keep your code DRY by inferring column validations from table properties! Automagically validate presence, length, numericality, inclusion and uniqueness of ActiveRecord backed columns.