{"id":18483872,"url":"https://github.com/node-opcua/deassertify","last_synced_at":"2025-04-08T18:32:52.355Z","repository":{"id":34167376,"uuid":"38012313","full_name":"node-opcua/deassertify","owner":"node-opcua","description":"Browserify transform that comment assert statements out of your code.","archived":false,"fork":false,"pushed_at":"2022-06-25T10:11:00.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T00:58:29.279Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/node-opcua.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":"2015-06-24T21:35:51.000Z","updated_at":"2022-06-25T10:11:02.000Z","dependencies_parsed_at":"2022-09-02T16:02:33.609Z","dependency_job_id":null,"html_url":"https://github.com/node-opcua/deassertify","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/node-opcua%2Fdeassertify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-opcua%2Fdeassertify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-opcua%2Fdeassertify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-opcua%2Fdeassertify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-opcua","download_url":"https://codeload.github.com/node-opcua/deassertify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280190,"owners_count":20912966,"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-11-06T12:37:38.260Z","updated_at":"2025-04-08T18:32:52.330Z","avatar_url":"https://github.com/node-opcua.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deassertify\n\n  Browserify transform to comment assert statements out of your code.\n\n\n\nFor example.js:\n\n```javascript\nfunction foo(a) {\n  assert(a \u003e= 0, \" expecting a positive number\");\n  return Math.sqrt(a);\n}\n```\n\nthen on the command line:\n\n     browserify -t deassertify example.js \u003e bundle.js\n\nYou can also pass in the argument `nobundle` to prevent the assert package\nfrom being added to your bundle.\n\n     browserify -t [deassertify --nobundle] example.js \u003e bundle.js\n\nor with the api:\n\n```javascript\nvar browserify = require(\"browserify\")\n , fs = require(\"fs\")\n\nvar b = browserify(\"example.js\")\nb.transform(\"deassertify\")\n\nb.bundle().pipe(fs.createWriteStream(\"bundle.js\"))\n```\n\nthe bundle file output is:\n\n```javascript\nfunction foo(a) {\n  //-- assert(a \u003e= 0, \" expecting a positive number\");\n  return Math.sqrt(a);\n}\n```\n\nLicence: MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-opcua%2Fdeassertify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-opcua%2Fdeassertify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-opcua%2Fdeassertify/lists"}