{"id":13659134,"url":"https://github.com/unassert-js/gulp-unassert","last_synced_at":"2026-01-17T16:32:13.136Z","repository":{"id":43000747,"uuid":"47602310","full_name":"unassert-js/gulp-unassert","owner":"unassert-js","description":"Gulp plugin for unassert: Encourages programming with assertions by providing tools to compile them away.","archived":false,"fork":false,"pushed_at":"2023-01-09T08:05:53.000Z","size":333,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-24T19:47:33.150Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/unassert-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-08T06:08:34.000Z","updated_at":"2022-08-02T01:14:49.000Z","dependencies_parsed_at":"2023-02-08T09:15:36.652Z","dependency_job_id":null,"html_url":"https://github.com/unassert-js/gulp-unassert","commit_stats":null,"previous_names":["twada/gulp-unassert"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/unassert-js/gulp-unassert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unassert-js%2Fgulp-unassert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unassert-js%2Fgulp-unassert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unassert-js%2Fgulp-unassert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unassert-js%2Fgulp-unassert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unassert-js","download_url":"https://codeload.github.com/unassert-js/gulp-unassert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unassert-js%2Fgulp-unassert/sbom","scorecard":{"id":908853,"data":{"date":"2025-08-11","repo":{"name":"github.com/unassert-js/gulp-unassert","commit":"98233ab3a7afaeeeb0c9e1c8e6b100fa1ac14de8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/13 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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.yml:1","Info: no jobLevel write permissions found"],"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":"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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/unassert-js/gulp-unassert/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/unassert-js/gulp-unassert/node.js.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-MIT:0","Info: FSF or OSI recognized license: MIT License: LICENSE-MIT:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T18:23:44.591Z","repository_id":43000747,"created_at":"2025-08-24T18:23:44.591Z","updated_at":"2025-08-24T18:23:44.591Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511867,"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":[],"created_at":"2024-08-02T05:01:05.562Z","updated_at":"2026-01-17T16:32:13.104Z","avatar_url":"https://github.com/unassert-js.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# gulp-unassert\n\n\u003e A [gulp](https://github.com/gulpjs/gulp) plugin for [unassert](https://github.com/unassert-js/unassert).\n\n[![unassert][unassert-banner]][unassert-url]\n\n[![Build Status][ci-image]][ci-url]\n[![NPM version][npm-image]][npm-url]\n[![Code Style][style-image]][style-url]\n[![License][license-image]][license-url]\n\n\n## Description\n\n`gulp-unassert` is a [gulp](https://github.com/gulpjs/gulp) plugin for [unassert](https://github.com/unassert-js/unassert): Encourages [programming with assertions](https://en.wikipedia.org/wiki/Assertion_(software_development)) by providing tools to compile them away.\n\n\n### Related modules\n\n- [unassert](https://github.com/unassert-js/unassert): Encourages programming with assertions by providing tools to compile them away.\n- [unassertify](https://github.com/unassert-js/unassertify): Browserify transform for unassert\n- [babel-plugin-unassert](https://github.com/unassert-js/babel-plugin-unassert): Babel plugin for unassert\n- [webpack-unassert-loader](https://github.com/unassert-js/webpack-unassert-loader): Webpack loader for unassert\n- [unassert-cli](https://github.com/unassert-js/unassert-cli): CLI for unassert\n- [rollup-plugin-unassert](https://github.com/unassert-js/rollup-plugin-unassert): RollupJS plugin for unassert\n\n\n## Install\n\n```shell\nnpm install --save-dev gulp-unassert\n```\n\n## Usage\n\n### gulp 3.x\n\n```javascript\nconst unassert = require('gulp-unassert');\n\ngulp.task('build', () =\u003e {\n  gulp.src('./src/*.js')\n    .pipe(unassert())\n    .pipe(gulp.dest('./dist'));\n});\n```\n\n### gulp 4.x\n\n```javascript\nconst { src, dest } = require('gulp');\nconst unassert = require('gulp-unassert');\n\nfunction build() {\n  return src('./src/*.js')\n    .pipe(unassert())\n    .pipe(dest('./dist'));\n}\nexports.build = build;\n```\n\n### custom unassert options\n\n```javascript\nconst { src, dest } = require('gulp');\nconst unassert = require('gulp-unassert');\n\nfunction build() {\n  return src('./src/*.js')\n    .pipe(unassert({\n      modules: [\n        'assert',\n        'assert/strict',\n        'node:assert',\n        'node:assert/strict',\n        'invariant',\n        'uvu/assert'\n      ]\n    }))\n    .pipe(dest('./dist'));\n}\nexports.build = build;\n```\n\n\n## Source maps\n\n### gulp 3.x\n\ngulp-unassert can be used with [gulp-sourcemaps](https://github.com/gulp-sourcemaps/gulp-sourcemaps) to generate source maps for the transformed javascript code. Note that you should `init` gulp-sourcemaps prior to running the gulp-unassert and `write` the source maps after. gulp-unassert works well with some gulp plugins that supports [gulp-sourcemaps](https://github.com/gulp-sourcemaps/gulp-sourcemaps).\n\n```javascript\nconst unassert = require('gulp-unassert');\nconst coffee = require('gulp-coffee');\nconst concat = require('gulp-concat');\nconst sourcemaps = require('gulp-sourcemaps');\n\ngulp.task('build', () =\u003e {\n  // compile, instrument then concatinate\n  gulp.src('./src/**/*.coffee')\n    .pipe(sourcemaps.init())\n    .pipe(coffee({bare: true}))\n    .pipe(unassert())\n    .pipe(concat('bundle.js'))\n    .pipe(sourcemaps.write())\n    .pipe(gulp.dest('./build'));\n  // will write the source maps inline in the code\n});\n```\n\nFor more information, see [gulp-sourcemaps](https://github.com/gulp-sourcemaps/gulp-sourcemaps).\n\n\n### gulp 4.x\n\nIn gulp 4, sourcemaps are built-in by default.\n\n```javascript\nconst { src, dest } = require('gulp');\nconst unassert = require('gulp-unassert');\nconst coffee = require('gulp-coffee');\nconst concat = require('gulp-concat');\n\nfunction build() {\n  return src('./src/*.coffee', { sourcemaps: true })\n    .pipe(coffee({ bare: true }))\n    .pipe(unassert())\n    .pipe(concat('bundle.js'))\n    .pipe(dest('./build'));\n}\nexports.build = build;\n```\n\n\n## Changelog\n\nSee [CHANGELOG](https://github.com/unassert-js/gulp-unassert/blob/master/CHANGELOG.md)\n\n\n## Author\n\n* [Takuto Wada](https://github.com/twada)\n\n\n## Our Support Policy\n\nWe support Node under maintenance. In other words, we stop supporting old Node version when [their maintenance ends](https://github.com/nodejs/Release).\n\nThis means that any other environment is not supported.\n\nNOTE: If gulp-unassert works in any of the unsupported environments, it is purely coincidental and has no bearing on future compatibility. Use at your own risk.\n\n\n## License\n\nLicensed under the [MIT](https://github.com/unassert-js/gulp-unassert/blob/master/LICENSE-MIT) license.\n\n\n[unassert-url]: https://github.com/unassert-js/unassert\n[unassert-banner]: https://raw.githubusercontent.com/unassert-js/unassert-js-logo/master/banner/banner-official-fullcolor.png\n\n[npm-url]: https://npmjs.org/package/gulp-unassert\n[npm-image]: https://badge.fury.io/js/gulp-unassert.svg\n\n[ci-image]: https://github.com/unassert-js/gulp-unassert/workflows/Node.js%20CI/badge.svg\n[ci-url]: https://github.com/unassert-js/gulp-unassert/actions?query=workflow%3A%22Node.js+CI%22\n\n[license-url]: https://github.com/unassert-js/gulp-unassert/blob/master/LICENSE-MIT\n[license-image]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat\n\n[style-url]: https://github.com/standard/semistandard\n[style-image]: https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funassert-js%2Fgulp-unassert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funassert-js%2Fgulp-unassert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funassert-js%2Fgulp-unassert/lists"}