{"id":16398839,"url":"https://github.com/sauldoescode/is","last_synced_at":"2025-10-26T14:31:31.627Z","repository":{"id":57148951,"uuid":"47494543","full_name":"SaulDoesCode/is","owner":"SaulDoesCode","description":"small type testing library for javascript","archived":false,"fork":false,"pushed_at":"2016-07-05T15:17:14.000Z","size":47,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T20:45:08.393Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SaulDoesCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-06T11:46:34.000Z","updated_at":"2021-02-26T05:10:41.000Z","dependencies_parsed_at":"2022-08-31T23:50:55.348Z","dependency_job_id":null,"html_url":"https://github.com/SaulDoesCode/is","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaulDoesCode%2Fis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaulDoesCode%2Fis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaulDoesCode%2Fis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaulDoesCode%2Fis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaulDoesCode","download_url":"https://codeload.github.com/SaulDoesCode/is/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238347825,"owners_count":19457001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T05:14:02.700Z","updated_at":"2025-10-26T14:31:31.313Z","avatar_url":"https://github.com/SaulDoesCode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"is.js small type testing library for node and the web\n\n```javascript\n  const is = require('is');\n\n  is.Arr([1,2,3,4]) // -\u003e true\n\n  is.Object({ a : 1 , b : 2}) // -\u003e true\n\n  is.eq('string one', 'string one') // -\u003e  true\n\n  is.eq('string two')('string two') // -\u003e true\n```\n\n#### API\n\n##### is\n\nis - Type Testing / Assertion\nmain object with all the methods\n\n###### Alphanumeric\n\nDetermine if a String contains only characters and numbers (alphanumeric)\n\n**Parameters**\n\n-   `str` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** variable to test\n\n###### Args\n\nTests if a value is an arguments object\n\n**Parameters**\n\n-   `variable` **...Any** to test\n\n###### Arr\n\nTest if something is an Array\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### Array\n\nArray.isArray alias for convenience and performance when only one argument is present\n\n**Parameters**\n\n-   `val` **Any** value to test\n\n###### Arraylike\n\nTest if something is an Array-Like\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### Between\n\nDetermines whether a Number is between a maximum and a minimum\n\n**Parameters**\n\n-   `val` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** number value to test\n-   `max` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** maximum to compare the value with\n-   `min` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** minimum to compare the value with\n\nReturns **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** wether or not the value is between the max and min\n\n###### Blob\n\nDetermine if a variable is of Blob type\n\n**Parameters**\n\n-   `obj`  variable to test\n\n###### Bool\n\nTest if something is a boolean type\n\n**Parameters**\n\n-   `val`  value to test\n\n###### bt\n\nDetermines if a number is BIGGER than another\n\n**Parameters**\n\n-   `val` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** value to test\n-   `other` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** num to test with value\n\n###### bte\n\nDetermines if a number is BIGGER than or equal to another\n\n**Parameters**\n\n-   `val` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** value to test\n-   `other` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** num to test with value\n\n###### Date\n\nDetermine if a variable is a Date type\n\n**Parameters**\n\n-   `variable` **...Any** to test\n\n###### dateString\n\nDetermines whether a String is a dateString\n\n**Parameters**\n\n-   `dateString` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** variable to test\n\n###### Def\n\nDetermine whether a variable is in fact defined\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### Element\n\nDetermine if a variable is a HTMLElement\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### Email\n\nDetermines whether a String is a valid Email\n\n**Parameters**\n\n-   `email` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** variable to test\n\n###### empty\n\nDetermine if a given collection or string is empty\n\n**Parameters**\n\n-   `val` **([Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)\\|[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)\\|[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String))** value to test if empty\n\n###### eq\n\nDetermines if two variables are equal\n\n**Parameters**\n\n-   `a`  first value to compare\n-   `b`  second value to compare\n\n###### even\n\nchecks if a number is an even number\n\n**Parameters**\n\n-   `val`  variable / value to test\n\n###### False\n\nDetermine if a variable/s are false\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### File\n\nDetermine if a variable is a File Object\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### FormData\n\nDetermine if a variable is of a FormData type\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### Func\n\nDetermine if a variable is a function\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### future\n\nDetermines if a date is in the future\n\n**Parameters**\n\n-   `obj`  Date to test\n\n###### hexadecimal\n\nDetermines whether a String is hexadecimal\n\n**Parameters**\n\n-   `hexadecimal` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** variable to test\n\n###### HexColor\n\nDetermines whether a String is a HEX-COLOR (#fff123)\n\n**Parameters**\n\n-   `HexColor` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** variable to test\n\n###### int\n\nchecks if a number is an integer\n\n**Parameters**\n\n-   `val`  variable / value to test\n\n###### Json\n\nDetermine if a sring is JSON\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### Lowercase\n\nDetermine if a String is LOWERCASE\n\n**Parameters**\n\n-   `char` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** variable to test\n\n###### lt\n\nDetermines if a number is LOWER than another\n\n**Parameters**\n\n-   `val` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** value to test\n-   `other` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** num to test with value\n\n###### lte\n\nDetermines if a number is LOWER than or equal to another\n\n**Parameters**\n\n-   `val` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** value to test\n-   `other` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** num to test with value\n\n###### Map\n\nDetermine if a variable is a Map\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### Native\n\nTest if something is a Native JavaScript feature\n\n**Parameters**\n\n-   `val`  value to test\n\n###### negative\n\nchecks if a number is positive\n\n**Parameters**\n\n-   `val`  variable / value to test\n\n###### Node\n\nDetermine whether a variable is a DOM Node\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### NodeList\n\nDetermine whether a variable is a DOM NodeList or Collection of Nodes\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### not\n\nDetermines if two variables are equal\n\n**Parameters**\n\n-   `a`  first value to compare\n-   `b`  second value to compare\n\n###### Null\n\nDetermine whether a variable is null\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### Num\n\nDetermine if a variable is a Number\n\n**Parameters**\n\n-   `args` **...Any** value/values to test\n\n###### Object\n\nDetermine if a variable is an Object\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### odd\n\nchecks if a number is an odd number\n\n**Parameters**\n\n-   `val`  variable / value to test\n\n###### past\n\nDetermines if a date is in the past\n\n**Parameters**\n\n-   `obj`  Date to test\n\n###### positive\n\nchecks if a number is positive\n\n**Parameters**\n\n-   `val`  variable / value to test\n\n###### RegExp\n\nDetermine if a variable is a Regular Expression\n\n**Parameters**\n\n-   `obj`  variable to test\n\n###### Set\n\nDetermine if a variable is a Set\n\n**Parameters**\n\n-   `obj`  variable to test\n\n###### String\n\nTest if something is a String\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### Symbol\n\nDetermine if a variable is a Symbol\n\n**Parameters**\n\n-   `obj`  variable to test\n\n###### Tag\n\nTest an element's tagname\n\n**Parameters**\n\n-   `element` **[Node](https://developer.mozilla.org/en-US/docs/Web/API/Node/nextSibling)** node to test\n-   `tag` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** tag to test node for\n\n###### time\n\nDetermines whether a String is a timeString\n\n**Parameters**\n\n-   `time`  variable to test\n\n###### today\n\nchecks wether a date is today\n\n**Parameters**\n\n-   `obj`  Date to test\n\n###### tomorrow\n\nchecks wether a date is tommorow\n\n**Parameters**\n\n-   `obj`  Date to test\n\n###### True\n\nDetermine if a variable/s are true\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### Undef\n\nDetermine whether a variable is undefined\n\n**Parameters**\n\n-   `args`  value/values to test\n\n###### Uppercase\n\nDetermine if a String is UPPERCASE\n\n**Parameters**\n\n-   `char` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** variable to test\n\n###### URL\n\nDetermines whether a String is a URL\n\n**Parameters**\n\n-   `url` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** variable to test\n\n###### yesterday\n\nchecks wether a date is yesterday\n\n**Parameters**\n\n-   `obj`  Date to test\n\n##### root\n\nis.js a small es6 type testing toolkit\nfor the web and node\n\n**Meta**\n\n-   **copyright**: MIT Licence (c) 2016 Saul van der Walt\n-   **author**: github.com/@SaulDoesCode\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsauldoescode%2Fis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsauldoescode%2Fis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsauldoescode%2Fis/lists"}