{"id":13656563,"url":"https://github.com/echamudi/node-console-assert","last_synced_at":"2025-08-24T14:07:18.498Z","repository":{"id":51697477,"uuid":"216390849","full_name":"echamudi/node-console-assert","owner":"echamudi","description":"console.assert polyfill for node environment, make it work like browser's console.assert","archived":false,"fork":false,"pushed_at":"2022-12-30T18:54:18.000Z","size":27,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-29T00:24:12.416Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/node-console-assert","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/echamudi.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":"2019-10-20T16:20:35.000Z","updated_at":"2020-05-17T00:43:07.000Z","dependencies_parsed_at":"2023-01-31T13:30:52.115Z","dependency_job_id":null,"html_url":"https://github.com/echamudi/node-console-assert","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echamudi%2Fnode-console-assert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echamudi%2Fnode-console-assert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echamudi%2Fnode-console-assert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echamudi%2Fnode-console-assert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/echamudi","download_url":"https://codeload.github.com/echamudi/node-console-assert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243828765,"owners_count":20354550,"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-08-02T05:00:23.679Z","updated_at":"2025-03-16T05:23:52.092Z","avatar_url":"https://github.com/echamudi.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# node-console-assert\n\nconsole.assert polyfill for node environment, make it work like browser's console.assert\n\n## Usage\n\n```js\nconsole.assert = require('node-console-assert');\n\nconsole.assert(1 + 2 === 3, '1 + 2 must equal 3'); // no error\n\nfunction addition(a, b) {\n    return a * b;\n};\nconsole.assert(addition(2, 3) === 5, '2 + 3 must equal 5'); // error\n```\n\nIf you don't want to modify the global console.assert, you can assign to a new constant.\n```js\nconst consoleAssert = require('node-console-assert');\n```\n\nCheck more examples in [test.js](https://github.com/echamudi/node-console-assert/blob/master/test.js) file.\n\n## Development\n\n| Branch | Status |\n| - | - |\n| master | [![Build Status](https://travis-ci.org/echamudi/node-console-assert.svg?branch=master)](https://travis-ci.org/echamudi/node-console-assert) |\n\n## License\n\n2019 © [Ezzat Chamudi](https://github.com/echamudi)\n\nThe code is released under [MIT License](https://opensource.org/licenses/MIT)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechamudi%2Fnode-console-assert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fechamudi%2Fnode-console-assert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechamudi%2Fnode-console-assert/lists"}