{"id":15388232,"url":"https://github.com/georapbox/is-api","last_synced_at":"2026-01-07T14:05:34.465Z","repository":{"id":57149355,"uuid":"106679720","full_name":"georapbox/is-api","owner":"georapbox","description":"Tiny javascript library that you can extend with your own type checking methods.","archived":false,"fork":false,"pushed_at":"2022-02-09T08:19:42.000Z","size":21,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T03:51:54.136Z","etag":null,"topics":["is","javascript","javascript-library","type-checking"],"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/georapbox.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":"2017-10-12T10:40:37.000Z","updated_at":"2022-02-09T08:19:17.000Z","dependencies_parsed_at":"2022-08-31T20:01:48.606Z","dependency_job_id":null,"html_url":"https://github.com/georapbox/is-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/georapbox/is-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georapbox%2Fis-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georapbox%2Fis-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georapbox%2Fis-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georapbox%2Fis-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/georapbox","download_url":"https://codeload.github.com/georapbox/is-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georapbox%2Fis-api/sbom","scorecard":{"id":423125,"data":{"date":"2025-08-11","repo":{"name":"github.com/georapbox/is-api","commit":"d5bb58be1d259c7f3ac3c5b27227d7a61e6575cb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-19T01:42:41.864Z","repository_id":57149355,"created_at":"2025-08-19T01:42:41.865Z","updated_at":"2025-08-19T01:42:41.865Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28235811,"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":"2026-01-07T02:00:05.975Z","response_time":58,"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":["is","javascript","javascript-library","type-checking"],"created_at":"2024-10-01T14:56:04.143Z","updated_at":"2026-01-07T14:05:34.435Z","avatar_url":"https://github.com/georapbox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/georapbox/is-api.svg?branch=master)](https://travis-ci.com/georapbox/is-api)\n[![npm version](https://img.shields.io/npm/v/is-api.svg)](http://badge.fury.io/js/is-api)\n[![npm downloads](https://img.shields.io/npm/dt/is-api.svg)](http://badge.fury.io/js/is-api)\n[![npm license](https://img.shields.io/npm/l/is-api.svg)](http://badge.fury.io/js/is-api)\n\n# is-api\n\nInspired by the [is.js](http://is.js.org/) micro library, this is tiny javascript library that you can extend with your own type checking (and more) methods and benefit from the interfaces `not`, `all` and `any` the library provides with.\n\nBy default, the library is \"naked\". Use the `extend()` method to provide it with your own type checking methods.\n\n## Why?\n\nBecause I liked the idea to do my type checks using a more functional way, but I also wanted to include only the methods I needed at any project.\n\n## Install\n\n### npm\n\n```sh\n$ npm install --save is-api\n```\n\n### GIT\n\n```sh\n$ git clone https://github.com/georapbox/is-api.git\n```\n\n## Usage example\n```js\nvar is = require('is-api');\n\nis.extend({\n  'array': Array.isArray,\n  'greaterThanFive': function (value) {\n    return val \u003e 5;\n  }\n});\n\n// Check if a value is array\nis.array([1, 2, 3]);\n// -\u003e true\n\nis.array({foo: 'bar'});\n// -\u003e false\n\n// Check if a value is NOT an array\nis.not.array([1, 2, 3]);\n// -\u003e false\n\nis.not.array({foo: 'bar'});\n// -\u003e true\n\n// Check if all values are arrays\nis.all.array([1, 2, 3], ['a', 'b', 'c']);\n// -\u003e true\n\nis.all.array([1, 2, 3], 10);\n// -\u003e false\n\n// Check if any of the values are arrays\nis.any.array([1, 2, 3], 10);\n// -\u003e true\n\nis.any.array(5, 10);\n// -\u003e false\n\n// Check if a value is greater than 5\nis.greaterThanFive(6);\n// -\u003e true\n\nis.greaterThanFive(3);\n// -\u003e false\n\nis.not.greaterThanFive(6);\n// -\u003e false\n\nis.not.greaterThanFive(3);\n// -\u003e true\n\nis.any.greaterThanFive(3, 7);\n// -\u003e true\n\nis.any.greaterThanFive(2, 5, 4);\n// -\u003e false\n\nis.all.greaterThanFive(6, 10, 45);\n// -\u003e true\n```\n\n## No Conflict\n\nWhen the library is used in a normal browser global namespace environment, you can use `noConflict()` method which returns the current API instance to you in order not to pollute your global namespace.\n\n```js\nvar utils = {};\n\nutils.is = is.noConflict();\n\nutils.is.extend({...});\n```\n\n## License\n\n[The MIT License (MIT)](https://georapbox.mit-license.org/@2017)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorapbox%2Fis-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorapbox%2Fis-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorapbox%2Fis-api/lists"}