{"id":19042092,"url":"https://github.com/writetome51/basic-data-handling","last_synced_at":"2025-09-11T17:10:51.803Z","repository":{"id":57150336,"uuid":"148579247","full_name":"writetome51/basic-data-handling","owner":"writetome51","description":"JavaScript functions that check if the passed argument meets a data type requirement.","archived":false,"fork":false,"pushed_at":"2019-03-14T22:45:08.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T02:24:31.297Z","etag":null,"topics":["data-types","is-finite-number","is-string","isarray","isfloat","isinteger","javascript","logic-err","type-checking","typescript"],"latest_commit_sha":null,"homepage":"","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/writetome51.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-13T03:53:39.000Z","updated_at":"2019-03-14T22:46:17.000Z","dependencies_parsed_at":"2022-09-03T18:02:14.093Z","dependency_job_id":null,"html_url":"https://github.com/writetome51/basic-data-handling","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/writetome51/basic-data-handling","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Fbasic-data-handling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Fbasic-data-handling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Fbasic-data-handling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Fbasic-data-handling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/writetome51","download_url":"https://codeload.github.com/writetome51/basic-data-handling/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Fbasic-data-handling/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273534304,"owners_count":25122636,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["data-types","is-finite-number","is-string","isarray","isfloat","isinteger","javascript","logic-err","type-checking","typescript"],"created_at":"2024-11-08T22:34:52.509Z","updated_at":"2025-09-04T00:41:59.586Z","avatar_url":"https://github.com/writetome51.png","language":"JavaScript","readme":"# basic-data-handling\n\nThis package contains functions that simply check if the passed argument meets a  \ndata type requirement.\n\n## To use any one of the functions below...  \n\n\u003cb\u003eIf using TypeScript\u003c/b\u003e, include the function's import statement  \n(commented below each function).  \n\n\u003cb\u003eIf using plain JavaScript\u003c/b\u003e, turn that 'import' statement into a  \n'require' statement like so:\n```\nimport {functionName} from 'basic-data-handling/fileContainingFunction'  \n\nbecomes this:\n\nvar functionName = require('basic-data-handling/fileContainingFunction').functionName;\n```\n\n## Functions that throw Error if `arg` is not \u003cbr\u003erequired type (they all return void)\n\ncheckTypeOf(arg, expectedType)  \n`// Performs typeof check on arg.  If arg is not expectedType, throws Error.`  \n`// import {checkTypeOf} from 'basic-data-handling/checkTypeOf' `\n\nerrorIfNotArray(arg)  \n`// import {errorIfNotArray} from 'basic-data-handling/errorIfNotArray' `\n\nerrorIfNotBoolean(arg)  \n`// import {errorIfNotBoolean} from 'basic-data-handling/errorIfNotBoolean' `\n\nerrorIfNotDefined(arg)  \n`// errors if arg is undefined or null.`  \n`// import {errorIfNotDefined} from 'basic-data-handling/errorIfNotDefined' `\n\nerrorIfNotFloat(arg)  \n`// import {errorIfNotFloat} from 'basic-data-handling/errorIfNotFloat' `\n\nerrorIfNotFunction(arg)  \n`// import {errorIfNotFunction} from 'basic-data-handling/errorIfNotFunction' `\n\nerrorIfNotInteger(arg)  \n`// import {errorIfNotInteger} from 'basic-data-handling/errorIfNotInteger' `\n\nerrorIfNotIntegerZeroOrGreater(arg)  \n`// import {errorIfNotIntegerZeroOrGreater} from 'basic-data-handling/errorIfNotIntegerZeroOrGreater' `\n\nerrorIfNotNumber(arg)  \n`// errors if arg is not finite number.`  \n`// import {errorIfNotNumber} from 'basic-data-handling/errorIfNotNumber' `\n\nerrorIfNotObject(arg)   \n`// errors if arg is string, boolean, number, function, null, or undefined.`  \n`// import {errorIfNotObject} from 'basic-data-handling/errorIfNotObject' `\n\nerrorIfNotPrimitive(arg)   \n`// import {errorIfNotPrimitive} from 'basic-data-handling/errorIfNotPrimitive' `\n\nerrorIfNotString(arg)  \n`// import {errorIfNotString} from 'basic-data-handling/errorIfNotString' `\n\n\n## Functions that return boolean\n\nisArray(arg)  \n`// import {isArray} from 'basic-data-handling/isArray_notArray' `\n\nnotArray(arg)  \n`// import {notArray} from 'basic-data-handling/isArray_notArray' `\n\nisObject(arg)  \n`// Arrays ARE considered objects. `   \n`// Does NOT consider null an object. `  \n`// Does NOT consider functions objects. `    \n`// import {isObject} from 'basic-data-handling/isObject_notObject' `\n\nnotObject(arg)  \n`// Returns true if arg is string, boolean, number, function, null, or undefined.`   \n`// import {notObject} from 'basic-data-handling/isObject_notObject' `\n\nisString(arg)  \n`// import {isString} from 'basic-data-handling/isString_notString' `\n\nnotString(arg)  \n`// import {notString} from 'basic-data-handling/isString_notString' `\n\nisFiniteNumber(arg)  \n`// import {isFiniteNumber} from 'basic-data-handling/isFiniteNumber' `\n\nnotFiniteNumber(arg)  \n`// import {notFiniteNumber} from 'basic-data-handling/isFiniteNumber' `\n\nisInteger(arg)  \n`// import {isInteger} from 'basic-data-handling/isInteger_isFloat' `\n\nnotInteger(arg)   \n`// import {notInteger} from 'basic-data-handling/isInteger_isFloat' `\n\nisFloat(arg)   \n`// import {isFloat} from 'basic-data-handling/isInteger_isFloat' `\n\nisEmpty(arrayOrString)   \n`// import {isEmpty} from 'basic-data-handling/isEmpty_notEmpty' `\n\nnotEmpty(arrayOrString)  \n`// import {notEmpty} from 'basic-data-handling/isEmpty_notEmpty' `\n\nisDefined(arg)  \n`// returns true if arg is not undefined or null.`  \n`// import {isDefined} from  'basic-data-handling/isDefined_notDefined' `\n\nnotDefined(arg)  \n`// returns true if arg is undefined or null.`  \n`// import {notDefined} from 'basic-data-handling/isDefined_notDefined' `\n\n\n## Installation\n`npm i  basic-data-handling`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritetome51%2Fbasic-data-handling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwritetome51%2Fbasic-data-handling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritetome51%2Fbasic-data-handling/lists"}