{"id":15679496,"url":"https://github.com/fabioricali/bejs","last_synced_at":"2025-10-08T06:48:06.143Z","repository":{"id":57189440,"uuid":"93997023","full_name":"fabioricali/beJS","owner":"fabioricali","description":"Simple, light-weight assertions framework for javascript","archived":false,"fork":false,"pushed_at":"2020-09-04T16:41:14.000Z","size":1546,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-03T03:44:31.004Z","etag":null,"topics":["assertion-library","assertions","framework","javascript","nodejs","test-framework","throw-errors","validation-library"],"latest_commit_sha":null,"homepage":"https://be.js.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabioricali.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-11T10:24:05.000Z","updated_at":"2021-10-12T05:28:54.000Z","dependencies_parsed_at":"2022-09-15T06:21:55.451Z","dependency_job_id":null,"html_url":"https://github.com/fabioricali/beJS","commit_stats":null,"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/fabioricali/beJS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2FbeJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2FbeJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2FbeJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2FbeJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabioricali","download_url":"https://codeload.github.com/fabioricali/beJS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2FbeJS/sbom","scorecard":{"id":390089,"data":{"date":"2025-08-11","repo":{"name":"github.com/fabioricali/beJS","commit":"bfc0b37b3f17f8590a4eb249b3b61c419d9c9049"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"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-18T17:36:10.638Z","repository_id":57189440,"created_at":"2025-08-18T17:36:10.638Z","updated_at":"2025-08-18T17:36:10.638Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278903008,"owners_count":26065786,"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-10-08T02:00:06.501Z","response_time":56,"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":["assertion-library","assertions","framework","javascript","nodejs","test-framework","throw-errors","validation-library"],"created_at":"2024-10-03T16:32:00.632Z","updated_at":"2025-10-08T06:48:06.128Z","avatar_url":"https://github.com/fabioricali.png","language":"JavaScript","readme":"\u003cdiv align=\"center\"\u003e\n\u003cbr/\u003e\n\u003cimg width=\"102\" src=\"https://raw.githubusercontent.com/fabioricali/beJS/master/extra/logo.png\" title=\"beJS\"/\u003e\n\n***to be, or not to be, that is the question***\n\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\n\u003ca href=\"https://travis-ci.org/fabioricali/beJS\" target=\"_blank\"\u003e\u003cimg src=\"https://travis-ci.org/fabioricali/beJS.svg?branch=master\" title=\"Build Status\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://coveralls.io/github/fabioricali/beJS?branch=master\" target=\"_blank\"\u003e\u003cimg src=\"https://coveralls.io/repos/github/fabioricali/beJS/badge.svg?branch=master\" title=\"Coverage Status\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://opensource.org/licenses/MIT\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" title=\"License: MIT\"/\u003e\u003c/a\u003e\n\u003cimg src=\"https://img.shields.io/badge/node.js-%3E%3D6-blue.svg\" title=\"Node.js version\"/\u003e\n\u003cimg src=\"https://img.shields.io/badge/team-terrons-orange.svg\" title=\"Team Terrons\"/\u003e\n# Simple, light-weight assertions framework for javascript\n\n#### More than ***190*** validation methods\n\n\u003c/div\u003e\n\n## Installation\n\n### Node.js\n```javascript\nnpm install bejs --save\n```\n\n### Browser\n\n#### Local\n```html\n\u003cscript src=\"node_modules/bejs/dist/be.min.js\"\u003e\u003c/script\u003e\n```\n\n#### CDN unpkg\n```html\n\u003cscript src=\"https://unpkg.com/bejs/dist/be.min.js\"\u003e\u003c/script\u003e\n```\n\n#### CDN jsDeliver\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/bejs/dist/be.min.js\"\u003e\u003c/script\u003e\n```\n\n## Example\n```javascript\nconst be = require('bejs');\n\n// call a method\nbe.boolean(true);\n\n// call interface \"not\"\nbe.not.boolean(1);\n\n// call interface \"all\" and passing arguments\nbe.all.boolean(true, false, true);\n\n// call interface \"all\" and passing array\nbe.all.boolean([true, false, true]);\n\n// call interface \"any\" and passing arguments\nbe.any.boolean(true, false, 1);\n\n// call interface \"err\" to throw an error if assertions  are not satisfied\nbe.err.equal('hello world', 'hello world!'); // throw AssertionError\n\n// call interface \"err\" passing a custom error message\nbe.err('the string must be equal to \"hello world!\"').equal('hello world', 'hello world!'); // throw AssertionError\n\n// call others interfaces from \"err\"\nbe.err.any.array([], {}, '');\n```\n\n## As unit test with Mocha\n```javascript\ndescribe('a test', () =\u003e {\n    it('should be ok', (done)=\u003e{\n        be.err(done).email('fabio@rica.li');\n    });\n    \n    it('should be false', ()=\u003e{\n        be.err.false(2 === 3);\n    });\n});\n```\n\n## Documentation\nSee \u003ca target=\"_blank\" href=\"https://be.js.org\"\u003ehttps://be.js.org\u003c/a\u003e\n\n## Changelog\nYou can view the changelog \u003ca target=\"_blank\" href=\"https://github.com/fabioricali/beJS/blob/master/CHANGELOG.md\"\u003ehere\u003c/a\u003e\n\n## License\nbeJS is open-sourced software licensed under the \u003ca target=\"_blank\" href=\"http://opensource.org/licenses/MIT\"\u003eMIT license\u003c/a\u003e\n\n## Author\n\u003ca target=\"_blank\" href=\"http://rica.li\"\u003eFabio Ricali\u003c/a\u003e\n\n\u003ca target=\"_blank\" href=\"https://www.mdslab.org\"\u003eDavide Polano\u003c/a\u003e","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioricali%2Fbejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabioricali%2Fbejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioricali%2Fbejs/lists"}