{"id":17402293,"url":"https://github.com/qfox/console-assert","last_synced_at":"2025-03-27T22:29:02.319Z","repository":{"id":57205937,"uuid":"54675068","full_name":"qfox/console-assert","owner":"qfox","description":"Standardizer for node's console.assert","archived":false,"fork":false,"pushed_at":"2016-03-24T21:41:15.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-11T10:06:53.659Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qfox.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-03-24T21:22:15.000Z","updated_at":"2016-03-24T21:41:16.000Z","dependencies_parsed_at":"2022-09-18T01:22:31.276Z","dependency_job_id":null,"html_url":"https://github.com/qfox/console-assert","commit_stats":null,"previous_names":["zxqfox/console-assert"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qfox%2Fconsole-assert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qfox%2Fconsole-assert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qfox%2Fconsole-assert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qfox%2Fconsole-assert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qfox","download_url":"https://codeload.github.com/qfox/console-assert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245934034,"owners_count":20696361,"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-16T17:25:33.280Z","updated_at":"2025-03-27T22:29:02.268Z","avatar_url":"https://github.com/qfox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# console-assert\n\nSimple `console.assert` polyfill for node since existing realization throws instead of printing error.\n\nSee:\n- Issue in nodejs repository: https://github.com/nodejs/node/issues/5340\n- Draft specification: https://github.com/DeveloperToolsWG/console-object/blob/master/api.md#consoleassertexpression-object\n\n## Why?\n\nBecause when you trying to write polymorphic code you can't use console.assert in node env.\n\n## How to use?\n\nInstall module via npm:\n```\nnpm i console-assert\n```\n\nWrite this somewhere when you need it:\n```js\nrequire('console-assert').browserify();\n```\n\n\u003e NB: Module patchs global console.assert and if you need to rollback behaviour\nyou have to just run `require('console-assert').restore();`.\n\n## License\n\n[The MIT License](http://qfox.mit-license.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqfox%2Fconsole-assert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqfox%2Fconsole-assert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqfox%2Fconsole-assert/lists"}