{"id":32490056,"url":"https://github.com/webpack/coffee-loader","last_synced_at":"2025-10-27T08:19:52.510Z","repository":{"id":2936821,"uuid":"3948747","full_name":"webpack/coffee-loader","owner":"webpack","description":"CoffeeScript Loader","archived":false,"fork":false,"pushed_at":"2025-10-24T16:32:17.000Z","size":2272,"stargazers_count":142,"open_issues_count":1,"forks_count":51,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-10-25T04:27:10.437Z","etag":null,"topics":["coffeescript","webpack-loader"],"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/webpack.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"open_collective":"webpack"}},"created_at":"2012-04-06T10:26:45.000Z","updated_at":"2025-10-24T16:32:20.000Z","dependencies_parsed_at":"2024-03-02T14:29:05.380Z","dependency_job_id":"a7108f0d-8a9e-40f6-b8f6-9b580155f390","html_url":"https://github.com/webpack/coffee-loader","commit_stats":{"total_commits":151,"total_committers":24,"mean_commits":6.291666666666667,"dds":0.5629139072847682,"last_synced_commit":"890fcf229f7e7c77431a08e3ff51fcaca6fd59a8"},"previous_names":["webpack/coffee-loader"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/webpack/coffee-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fcoffee-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fcoffee-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fcoffee-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fcoffee-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webpack","download_url":"https://codeload.github.com/webpack/coffee-loader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fcoffee-loader/sbom","scorecard":{"id":1238442,"data":{"date":"2025-08-25","repo":{"name":"github.com/webpack-contrib/coffee-loader","commit":"747d473d1f211264bc2fd5b477eadeb64f5d2f2f"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":6.3,"checks":[{"name":"Code-Review","score":8,"reason":"Found 25/29 approved changesets -- score normalized to 8","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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"name":"Maintained","score":4,"reason":"5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:5","Info: topLevel 'contents' permission set to 'read': .github/workflows/nodejs.yml:14","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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependency-review.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/webpack-contrib/coffee-loader/dependency-review.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependency-review.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/webpack-contrib/coffee-loader/dependency-review.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/webpack-contrib/coffee-loader/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/webpack-contrib/coffee-loader/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/webpack-contrib/coffee-loader/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/webpack-contrib/coffee-loader/nodejs.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/nodejs.yml:93: update your workflow using https://app.stepsecurity.io/secureworkflow/webpack-contrib/coffee-loader/nodejs.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/nodejs.yml:88","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   2 out of   3 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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/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 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-10-03T07:26:48.667Z","repository_id":2936821,"created_at":"2025-10-03T07:26:48.667Z","updated_at":"2025-10-03T07:26:48.667Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281059641,"owners_count":26437064,"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","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["coffeescript","webpack-loader"],"created_at":"2025-10-27T08:19:51.854Z","updated_at":"2025-10-27T08:19:52.505Z","avatar_url":"https://github.com/webpack.png","language":"JavaScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"160\" height=\"160\" src=\"https://cdn.worldvectorlogo.com/logos/coffeescript.svg\"\u003e\n  \u003ca href=\"https://github.com/webpack/webpack\"\u003e\n    \u003cimg width=\"200\" height=\"200\" hspace=\"20\" src=\"https://webpack.js.org/assets/icon-square-big.svg\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n[![npm][npm]][npm-url]\n[![node][node]][node-url]\n[![tests][tests]][tests-url]\n[![coverage][cover]][cover-url]\n[![discussion][discussion]][discussion-url]\n[![size][size]][size-url]\n\n# coffee-loader\n\nCompile [CoffeeScript](https://coffeescript.org/) to JavaScript.\n\n## Getting Started\n\nTo begin, you'll need to install `coffeescript` and `coffee-loader`:\n\n```console\nnpm install --save-dev coffeescript coffee-loader\n```\n\nor\n\n```console\nyarn add -D coffeescript coffee-loader\n```\n\nor\n\n```console\npnpm add -D coffeescript coffee-loader\n```\n\nThen add the loader to your `webpack.config.js`. For example:\n\n**file.coffee**\n\n```coffee\n# Assignment:\nnumber   = 42\nopposite = true\n\n# Conditions:\nnumber = -42 if opposite\n\n# Functions:\nsquare = (x) -\u003e x * x\n\n# Arrays:\nlist = [1, 2, 3, 4, 5]\n\n# Objects:\nmath =\n  root:   Math.sqrt\n  square: square\n  cube:   (x) -\u003e x * square x\n\n# Splats:\nrace = (winner, runners...) -\u003e\n  print winner, runners\n\n# Existence:\nalert \"I knew it!\" if elvis?\n\n# Array comprehensions:\ncubes = (math.cube num for num in list)\n```\n\n**webpack.config.js**\n\n```js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.coffee$/,\n        loader: \"coffee-loader\",\n      },\n    ],\n  },\n};\n```\n\nAlternative usage:\n\n```js\nimport coffee from \"coffee-loader!./file.coffee\";\n```\n\nFinally, run `webpack` using the method you normally use (e.g., via CLI or an npm script).\n\n## Options\n\nType: `Object`\nDefault: `{ bare: true }`\n\nYou can find all available CoffeeScript options [here](https://coffeescript.org/#nodejs-usage).\n\nFor documentation on the `transpile` option, see [this section](https://coffeescript.org/#transpilation).\n\n\u003e [!NOTE]\n\u003e\n\u003e The `sourceMap` option takes a value from the `compiler.devtool` value by default.\n\n\u003e [!NOTE]\n\u003e\n\u003e The `filename` option takes a value from webpack loader API, but it's value will be ignored.\n\n**webpack.config.js**\n\n```js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.coffee$/,\n        loader: \"coffee-loader\",\n        options: {\n          bare: false,\n          transpile: {\n            presets: [\"@babel/env\"],\n          },\n        },\n      },\n    ],\n  },\n};\n```\n\n## Examples\n\n### CoffeeScript and Babel\n\nFrom CoffeeScript 2 documentation:\n\n\u003e [!NOTE]\n\u003e\n\u003e CoffeeScript 2 generates JavaScript using the latest, modern syntax.\n\u003e The runtime or browsers where you want your code to run might not support all of that syntax.\n\u003e In that case, modern JavaScript needs to be converted into an older JavaScript that will run in older versions of Node or older browsers; for example: `{ a } = obj` into `a = obj.a`.\n\u003e This conversion is done using transpilers like Babel, Bublé or Traceur Compiler.\n\nYou'll need to install `@babel/core` and `@babel/preset-env` and then create a configuration file:\n\n```console\nnpm install --save-dev @babel/core @babel/preset-env\necho '{ \"presets\": [\"@babel/env\"] }' \u003e .babelrc\n```\n\n**webpack.config.js**\n\n```js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.coffee$/,\n        loader: \"coffee-loader\",\n        options: {\n          transpile: {\n            presets: [\"@babel/env\"],\n          },\n        },\n      },\n    ],\n  },\n};\n```\n\n### Literate CoffeeScript\n\nTo use Literate CoffeeScript you should setup:\n\n**webpack.config.js**\n\n```js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.coffee$/,\n        loader: \"coffee-loader\",\n        options: {\n          literate: true,\n        },\n      },\n    ],\n  },\n};\n```\n\n## Contributing\n\nPlease take a moment to read our contributing guidelines if you haven't yet done so.\n\n[CONTRIBUTING](./.github/CONTRIBUTING.md)\n\n## License\n\n[MIT](./LICENSE)\n\n[npm]: https://img.shields.io/npm/v/coffee-loader.svg\n[npm-url]: https://npmjs.com/package/coffee-loader\n[node]: https://img.shields.io/node/v/coffee-loader.svg\n[node-url]: https://nodejs.org\n[tests]: https://github.com/webpack/coffee-loader/workflows/coffee-loader/badge.svg\n[tests-url]: https://github.com/webpack/coffee-loader/actions\n[cover]: https://codecov.io/gh/webpack/coffee-loader/branch/main/graph/badge.svg\n[cover-url]: https://codecov.io/gh/webpack/coffee-loader\n[discussion]: https://img.shields.io/github/discussions/webpack/webpack\n[discussion-url]: https://github.com/webpack/webpack/discussions\n[size]: https://packagephobia.now.sh/badge?p=coffee-loader\n[size-url]: https://packagephobia.now.sh/result?p=coffee-loader\n","funding_links":["https://opencollective.com/webpack"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpack%2Fcoffee-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebpack%2Fcoffee-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpack%2Fcoffee-loader/lists"}