{"id":35162512,"url":"https://github.com/nodejs-loaders/nodejs-loaders","last_synced_at":"2026-05-27T21:00:46.377Z","repository":{"id":207462743,"uuid":"718834790","full_name":"nodejs-loaders/nodejs-loaders","owner":"nodejs-loaders","description":"This repo provides a variety of loaders to facilitate quick and easy local development and CI testing.","archived":false,"fork":false,"pushed_at":"2026-05-27T10:10:44.000Z","size":617,"stargazers_count":55,"open_issues_count":13,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-05-27T10:14:35.116Z","etag":null,"topics":["customisation-hooks","loader","modules","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/org/nodejs-loaders","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodejs-loaders.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-14T22:17:57.000Z","updated_at":"2026-05-27T10:08:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f70268f-ef63-4e45-b679-277aa132eb71","html_url":"https://github.com/nodejs-loaders/nodejs-loaders","commit_stats":null,"previous_names":["jakobjingleheimer/nodejs-loaders","nodejs-loaders/nodejs-loaders"],"tags_count":61,"template":false,"template_full_name":null,"purl":"pkg:github/nodejs-loaders/nodejs-loaders","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs-loaders%2Fnodejs-loaders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs-loaders%2Fnodejs-loaders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs-loaders%2Fnodejs-loaders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs-loaders%2Fnodejs-loaders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodejs-loaders","download_url":"https://codeload.github.com/nodejs-loaders/nodejs-loaders/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs-loaders%2Fnodejs-loaders/sbom","scorecard":{"id":1239297,"data":{"date":"2025-10-28T16:49:19Z","repo":{"name":"github.com/nodejs-loaders/nodejs-loaders","commit":"eea84183354cc3db166dbd3ad8fbd2c6943a7b32"},"scorecard":{"version":"v5.3.0","commit":"c22063e786c11f9dd714d777a687ff7c4599b600"},"score":8.5,"checks":[{"name":"Maintained","score":10,"reason":"23 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#maintained"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","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/c22063e786c11f9dd714d777a687ff7c4599b600/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/c22063e786c11f9dd714d777a687ff7c4599b600/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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:33","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:34","Info: jobLevel 'contents' permission set to 'read': .github/workflows/publish.yml:17","Info: topLevel 'contents' permission set to 'read': .github/workflows/ci.yml:16","Info: topLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:26","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:15","Info: topLevel 'contents' permission set to 'read': .github/workflows/publish.yml:10","Info: topLevel 'pull-requests' permission set to 'read': .github/workflows/pull-requests.yml:15","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:16","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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#token-permissions"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#dependency-update-tool"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:  17 out of  17 GitHub-owned GitHubAction dependencies pinned","Info:  11 out of  11 third-party GitHubAction dependencies pinned","Info:   3 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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":2,"reason":"badge detected: InProgress","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#cii-best-practices"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#vulnerabilities"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/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: ISC License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#license"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":6,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Info: 'stale review dismissal' is required to merge on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Warn: codeowners review is not required on branch 'main'","Info: 'last push approval' is required to merge on branch 'main'","Warn: no status checks found to merge onto branch 'main'","Info: PRs are required in order to make changes on 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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#branch-protection"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (30) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#sast"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish.yml:13"],"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#packaging"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#security-policy"}},{"name":"Contributors","score":10,"reason":"project has 7 contributing companies or organizations","details":["Info: found contributions from: Devographics, codebar, form5, nodejs, nodejs-loaders, scholarsuite, tc39"],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#contributors"}},{"name":"CI-Tests","score":10,"reason":"30 out of 30 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#ci-tests"}}]},"last_synced_at":"2025-10-28T18:25:15.992Z","repository_id":207462743,"created_at":"2025-10-28T18:25:15.992Z","updated_at":"2025-10-28T18:25:15.992Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33579767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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":["customisation-hooks","loader","modules","nodejs"],"created_at":"2025-12-28T18:48:09.651Z","updated_at":"2026-05-27T21:00:46.365Z","avatar_url":"https://github.com/nodejs-loaders.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nodejs Loaders\n\n\u003cimg src=\"https://raw.githubusercontent.com/nodejs-loaders/nodejs-loaders/refs/heads/main/logo.svg\" height=\"100\" width=\"100\" alt=\"@node.js loaders logo\" /\u003e\n\n![coverage](https://img.shields.io/coverallsCoverage/github/nodejs-loaders/nodejs-loaders)\n![tests](https://github.com/nodejs-loaders/nodejs-loaders/actions/workflows/ci.yml/badge.svg)\n[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/nodejs-loaders/nodejs-loaders/badge)](https://scorecard.dev/viewer/?uri=github.com/nodejs-loaders/nodejs-loaders)\n[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/10004/badge)](https://www.bestpractices.dev/projects/10004)\n\nThis package provides a variety of loaders to facilitate quick and easy local development and CI testing.\n\n\u003e [!WARNING]\n\u003e These should NOT be used in production; they will likely not do what you need there anyway.\n\n## Usage\n\nThe following JustWorks¹:\n\nYou can register an individual via `--import` like:\n\n```console\n$ node --import=@nodejs-loaders/tsx ./main.tsx\n```\n\nOr register multiple via multiple `--import`s like:\n\n```console\n$ node \\\n  --import=@nodejs-loaders/tsx \\\n  --import=@nodejs-loaders/css-module \\\n  --import=@nodejs-loaders/media \\\n  ./main.tsx\n```\n\nBut that can quickly clutter the CLI. Instead, you may want to create your own `register.mts` like so:\n\n```console\n$ node --import ./register.mts ./main.tsx\n```\n\n```ts\nimport { register } from 'node:module';\n\nregister('@nodejs-loaders/tsx', import.meta.url);\nregister('@nodejs-loaders/css-module', import.meta.url);\nregister('@nodejs-loaders/media', import.meta.url);\n```\n\n```tsx\nimport { ProfileAvatar } from './ProfileAvatar.tsx';\nimport * as classes from './ProfileAvatar.module.css';\nimport defaultProfileAvatar from './default.png';\n\nconsole.log(\n  \u003cProfileAvatar\n    className={classes.AdminUser}\n    src={defaultProfileAvatar}\n  /\u003e\n);\n```\n\n¹ Prior to node 23.6.0, a flag is needed to support TypeScript in `register.mts` (otherwise, it can be `register.mjs` instead).\n\n### Usage with `module.registerHooks`\n\nMost @nodejs-loaders are compatible with the sync version of customization hooks. In order to avoid the loader automatically registering itself via the async API (which it does when imported via its `main` entrypoint), you must import it via the direct path:\n\n```js\nimport module from 'node:module';\n\n// ⚠️ Do NOT import via `main`, like '@nodejs-loaders/alias'\nimport * as aliasLoader from '@nodejs-loaders/alias/alias.loader.mjs';\n\nmodule.registerHooks(aliasLoader);\n```\n\n## Available loaders\n\n* [Alias](./packages/alias/)\n* [CSS Modules](./packages/css-module/)\n* [deno 'npm:' prefix](./packages/deno-npm-prefix/)\n* [JSON5](./packages/json5/)\n* [JSONC](./packages/jsonc/)\n* [JSX / TSX](./packages/tsx/)\n* [Media](./packages/media/)\n* [Mismatched format](./packages/mismatched-format/)\n* [SVGX](./packages/svgx/)\n* [Text](./packages/text/)\n* [YAML](./packages/yaml/)\n\nSome loaders must be registered in a specific sequence:\n\n1. alias\n1. tsx\n1. svgx\n1. mismatched-format\n\nThese don't need a specific registration sequence:\n\n* css-module\n* deno-npm-prefix\n* JSON5\n* JSONC\n* media\n* text\n* YAML\n\n## Project-official loaders\n\nThese loaders are officially maintained by their respective projects and are recommended (they're the most up-to-date and have the best support).\n\n* [Aurelia loader](https://github.com/aurelia/loader-nodejs)\n* [MDX loader](https://mdxjs.com/packages/node-loader/)\n* [SWC register](https://github.com/swc-project/swc-node/tree/master/packages/register#swc-noderegister)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodejs-loaders%2Fnodejs-loaders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodejs-loaders%2Fnodejs-loaders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodejs-loaders%2Fnodejs-loaders/lists"}