{"id":17233857,"url":"https://github.com/caseywebdev/cogs","last_synced_at":"2026-03-12T07:35:29.948Z","repository":{"id":3995161,"uuid":"5092114","full_name":"caseywebdev/cogs","owner":"caseywebdev","description":"The fast file transform pipeline.","archived":false,"fork":false,"pushed_at":"2025-08-09T19:33:44.000Z","size":787,"stargazers_count":31,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-21T23:11:22.959Z","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/caseywebdev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2012-07-18T05:37:06.000Z","updated_at":"2025-08-09T19:33:46.000Z","dependencies_parsed_at":"2024-06-18T21:10:15.403Z","dependency_job_id":"8b501926-b94e-4def-be0b-9032a6af9634","html_url":"https://github.com/caseywebdev/cogs","commit_stats":{"total_commits":540,"total_committers":4,"mean_commits":135.0,"dds":0.08333333333333337,"last_synced_commit":"bb13a8c9be43d1435499b4a3ab0273e9ae2f56ab"},"previous_names":[],"tags_count":255,"template":false,"template_full_name":null,"purl":"pkg:github/caseywebdev/cogs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseywebdev%2Fcogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseywebdev%2Fcogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseywebdev%2Fcogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseywebdev%2Fcogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caseywebdev","download_url":"https://codeload.github.com/caseywebdev/cogs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseywebdev%2Fcogs/sbom","scorecard":{"id":267224,"data":{"date":"2025-08-11","repo":{"name":"github.com/caseywebdev/cogs","commit":"2584570f60d7543e32d371b3dd559718a55d369b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Maintained","score":7,"reason":"9 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yaml: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":"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":"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":"Code-Review","score":0,"reason":"Found 0/23 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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yaml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/caseywebdev/cogs/main.yaml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/main.yaml:13","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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 9 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"}}]},"last_synced_at":"2025-08-17T12:24:14.300Z","repository_id":3995161,"created_at":"2025-08-17T12:24:14.300Z","updated_at":"2025-08-17T12:24:14.300Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30418215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T07:30:13.030Z","status":"ssl_error","status_checked_at":"2026-03-12T07:29:54.885Z","response_time":114,"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-10-15T05:27:02.297Z","updated_at":"2026-03-12T07:35:29.922Z","avatar_url":"https://github.com/caseywebdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cogs\n\nThe fast file transform pipeline.\n\n\u003e George Jetson's workweek is typical of his era: an hour a day, two days a\n\u003e week. His boss is Cosmo Spacely, the diminutive yet bombastic owner of Spacely\n\u003e Space Sprockets. Spacely has a competitor, H. G. Cogswell, owner of the rival\n\u003e company Cogswell Cogs (sometimes known as Cogswell's Cosmic Cogs).\n\n## Install\n\n\n```bash\nnpm install cogs\n```\n\n## Usage\n\nCogs leverages a simple command line interface paired with a powerful\ndeclarative config file.\n\n```\nUsage: cogs [options]\n\nThe fast file transform pipeline.\n\n\nOptions:\n\n  -V, --version             output the version number\n  -c, --config-path [path]  load config from [path] (default: cogs.js)\n  -d, --debounce [seconds]  trigger a build at most every [seconds] seconds (default: 0.1)\n  -w, --watch-paths [path]  rebuild if [path] changes, can be specified multiple times\n  -p, --use-polling         use stat polling instead of fsevents when watching\n  -s, --silent              do not output build information, only errors\n  -h, --help                output usage information\n```\n\n## Config\n\nEvery good project needs a Cogs config file. This file can be JavaScript or\nJSON, as long as `require`ing the file returns the config object. Here's an\nexample in JavaScript:\n\n```js\nexport default {\n\n  // Define the transformer pipeline here.\n  transformers: [\n    {\n      // This is the name of the transformer to use for this piece of the\n      // pipeline. It can be shorthand like this, or the fully-qualified package\n      // name like 'cogs-transformer-babel'.\n      name: 'babel',\n\n      // The \"only\" key can be used to define a glob or array of globs, one of\n      // which must be matched for the file to go through this transformer.\n      only: 'src/**/*.js',\n\n      // \"except\" is the opposite of only. Paths that match these globs will not\n      // go through the transformer.\n      except: [\n        'src/some/outlier/file.js',\n        'src/more/outliers/**/*.js'\n      ],\n\n      // \"options\" will be passed directly to the transformer.\n      options: {\n        presets: ['stage-0', 'es2015', 'react']\n      }\n    },\n\n    // Impromptu transformers are as easy as specifying a function.\n    {\n      fn: ({file: {buffer}, options}) =\u003e ({buffer: Buffer.from(`${buffer}!`)),\n      only: '**/*.exciting'\n    },\n\n    // Some other examples...\n    {\n      name: 'uglify-js',\n      only: '**/*.js',\n      except: '**/*+(-|_|.)min.js'\n    },\n    {\n      name: 'sass',\n      only: 'src/**/*.scss'\n    },\n    {\n      name: 'clean-css',\n      only: '**/*.+(css|scss)'\n    }\n  ],\n\n  // Define source globs and targets here. This is where you define what to\n  // transform and where it should go.\n  builds: {\n    'src/index.es6': {base: 'src', dir: 'public'},\n\n    'src/public/**/*': {base: 'src/public', dir: 'public'},\n\n    // Save to public dir and rename .es6 files to .js and .scss files to .css\n    'src/foo/**/*': {\n      base: 'src',\n      dir: 'public',\n      ext: {\n        '.es6': '.js',\n        '.scss': '.css'\n      }\n    }\n  }\n};\n```\n\n## Transformers\n\nTransformers are generally node modules that can be downloaded from npm.\nAlternatively, you can create your own transformers for your projects and\nreference them in the transformers array.\n\n[Here are some transformers to get you started](https://github.com/search?q=cogs-transformer\u0026type=Repositories)\n\n## Develop\n\n```bash\ngit clone git@github.com:caseywebdev/cogs\ncd cogs\nnpm install\nbin/watch-test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaseywebdev%2Fcogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaseywebdev%2Fcogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaseywebdev%2Fcogs/lists"}