typeof-arguments
Advanced tools
Comparing version 3.0.1 to 3.0.2
const ofType = require('of-type'); | ||
const cliColor = require('cli-color'); | ||
const error = cliColor.red; | ||
const warn = cliColor.bgYellow.black; | ||
const warn = cliColor.bgYellow.blue; | ||
module.exports = function(a,o,c){ | ||
@@ -6,0 +6,0 @@ const errArguments = warn('typeof-arguments')+': '+error('Invalid module argument. The first argument must indicate [Object Arguments] object.'); |
{ | ||
"name": "typeof-arguments", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Validate the types of arguments passed to the function.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,3 +21,3 @@ # Description | ||
* The **`types`** [String] is case insensitive: `'String'`, `'string'`, `'StRiNg'` checks if the **`arguments`** item is of type [String]. For **`types`** [RegExp] case insensitivity use `i` flag, eg.: `/String/`, `/string/i`, `/sTrInG/i` | ||
* The **`types`** [String] can contain multiple allowed types, separated with `|`, eg: `'array|object'`, `'boolean|number|null|undefined'`, `string|number`. For **`types`** [RegExp] multiple values use `(x|y)` expression, eg: `/(string|number)/i` | ||
* The **`types`** [String] can contain multiple allowed types, separated with `|`, eg: `'array|object'`, `'boolean|number|null|undefined'`, `'string|number'`. For **`types`** [RegExp] multiple values use `(x|y)` expression, eg: `/(string|number)/i` | ||
@@ -24,0 +24,0 @@ ##### Extra types: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12705