{"id":13773878,"url":"https://github.com/unassert-js/rollup-plugin-unassert","last_synced_at":"2026-01-17T16:33:07.612Z","repository":{"id":34394886,"uuid":"177310143","full_name":"unassert-js/rollup-plugin-unassert","owner":"unassert-js","description":"A Rollup plugin to remove assertion calls via Unassert","archived":false,"fork":false,"pushed_at":"2023-07-19T08:36:22.000Z","size":254,"stargazers_count":5,"open_issues_count":4,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-17T06:01:07.425Z","etag":null,"topics":["plugin","rollup","testing","unassert"],"latest_commit_sha":null,"homepage":"","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/unassert-js.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-03-23T16:05:03.000Z","updated_at":"2023-07-20T10:10:01.000Z","dependencies_parsed_at":"2024-01-13T11:52:18.839Z","dependency_job_id":"63d45022-7ccd-4099-9c93-e38d6d11ce2d","html_url":"https://github.com/unassert-js/rollup-plugin-unassert","commit_stats":{"total_commits":25,"total_committers":8,"mean_commits":3.125,"dds":0.4,"last_synced_commit":"c85f5df67a3d586eb243bbba4fa2ac65dd2e2ab2"},"previous_names":["mourner/rollup-plugin-unassert"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/unassert-js/rollup-plugin-unassert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unassert-js%2Frollup-plugin-unassert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unassert-js%2Frollup-plugin-unassert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unassert-js%2Frollup-plugin-unassert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unassert-js%2Frollup-plugin-unassert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unassert-js","download_url":"https://codeload.github.com/unassert-js/rollup-plugin-unassert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unassert-js%2Frollup-plugin-unassert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["plugin","rollup","testing","unassert"],"created_at":"2024-08-03T17:01:21.222Z","updated_at":"2026-01-17T16:33:07.592Z","avatar_url":"https://github.com/unassert-js.png","language":"JavaScript","readme":"# rollup-plugin-unassert\n\nA [Rollup](http://www.rollupjs.org) plugin to remove assertion calls via [Unassert](https://github.com/unassert-js/unassert).\n\n## Usage\n\nInstall (`npm install --save-dev rollup-plugin-unassert` or `yarn add --dev rollup-plugin-unassert`),\nthen add it to the `plugins` section of your Rollup config as follows:\n\n```js\nimport unassert from 'rollup-plugin-unassert';\n\nexport default {\n    ...\n    plugins: [\n        unassert()\n    ]\n};\n```\n\n### Available options\n\nThis plugin accepts the following options:\n\n* `include`: A minimatch pattern or array of minimatch patterns, controlling which files are to be handled by this plugin. By default matches `*.js` only.\n* `exclude`: A minimatch pattern or array of minimatch patterns, controlling which files are to be ignored by this plugin. By default it's empty.\n* `sourcemap`: A boolean controlling whether to handle any existing sourcemaps, defaults to `true`. Setting this to `false` will hide the assert calls when debugging the generated bundle.\n* `assertionPatterns`: as per [unassert options](https://github.com/unassert-js/unassert#options).\n* `requirePatterns`: as per [unassert options](https://github.com/unassert-js/unassert#options).\n* `importPatterns`: as per [unassert options](https://github.com/unassert-js/unassert#options).\n\n### Example Rollup config\n\n```js\nimport unassert from 'rollup-plugin-unassert';\n\nexport default {\n    input: 'src/index.js',\n    output: {\n        file: 'dist/my-lib.js',\n    },\n    plugins: [\n        unassert({\n            exclude: 'test/**/**.js',\n            requirePatterns: ['assert = require(\"assert\")']\n        })\n    ]\n};\n```\n\n## License\n\n\"THE BEER-WARE LICENSE\":\n\u003civan@sanchezortega.es\u003e wrote this file. As long as you retain this notice you\ncan do whatever you want with this stuff. If we meet some day, and you think\nthis stuff is worth it, you can buy me a beer in return.\n\nAlso, thanks to Takuto Wada for https://github.com/unassert-js/unassertify, from\nwhich this project takes a lot of the code to wrap unassert.\n","funding_links":[],"categories":["Plugins"],"sub_categories":["Code Quality"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funassert-js%2Frollup-plugin-unassert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funassert-js%2Frollup-plugin-unassert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funassert-js%2Frollup-plugin-unassert/lists"}