{"id":13671192,"url":"https://github.com/webpack/loader-runner","last_synced_at":"2025-05-14T23:05:11.495Z","repository":{"id":3283864,"uuid":"48954065","full_name":"webpack/loader-runner","owner":"webpack","description":"Runs (webpack) loaders","archived":false,"fork":false,"pushed_at":"2024-02-29T23:20:26.000Z","size":231,"stargazers_count":302,"open_issues_count":13,"forks_count":62,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-06T11:16:13.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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":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}},"created_at":"2016-01-03T17:15:29.000Z","updated_at":"2025-04-22T02:44:02.000Z","dependencies_parsed_at":"2024-01-17T19:39:12.141Z","dependency_job_id":"62bd158d-82da-44ed-a896-6a7f8c3f971a","html_url":"https://github.com/webpack/loader-runner","commit_stats":{"total_commits":77,"total_committers":14,"mean_commits":5.5,"dds":0.4415584415584416,"last_synced_commit":"7a94e9bad72aad51246167ea121dcb1f99f9b6ae"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Floader-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Floader-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Floader-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Floader-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webpack","download_url":"https://codeload.github.com/webpack/loader-runner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253405023,"owners_count":21903113,"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","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-02T09:01:02.446Z","updated_at":"2025-05-14T23:05:06.431Z","avatar_url":"https://github.com/webpack.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# loader-runner\n\n``` js\nimport { runLoaders } from \"loader-runner\";\n\nrunLoaders({\n\tresource: \"/abs/path/to/file.txt?query\",\n\t// String: Absolute path to the resource (optionally including query string)\n\n\tloaders: [\"/abs/path/to/loader.js?query\"],\n\t// String[]: Absolute paths to the loaders (optionally including query string)\n\t// {loader, options}[]: Absolute paths to the loaders with options object\n\n\tcontext: { minimize: true },\n\t// Additional loader context which is used as base context\n\n\tprocessResource: (loaderContext, resourcePath, callback) =\u003e { ... },\n\t// Optional: A function to process the resource\n\t// Must have signature function(context, path, function(err, buffer))\n\t// By default readResource is used and the resource is added a fileDependency\n\n\treadResource: fs.readFile.bind(fs)\n\t// Optional: A function to read the resource\n\t// Only used when 'processResource' is not provided\n\t// Must have signature function(path, function(err, buffer))\n\t// By default fs.readFile is used\n}, function(err, result) {\n\t// err: Error?\n\n\t// result.result: Buffer | String\n\t// The result\n\t// only available when no error occurred\n\n\t// result.resourceBuffer: Buffer\n\t// The raw resource as Buffer (useful for SourceMaps)\n\t// only available when no error occurred\n\n\t// result.cacheable: Bool\n\t// Is the result cacheable or do it require reexecution?\n\n\t// result.fileDependencies: String[]\n\t// An array of paths (existing files) on which the result depends on\n\n\t// result.missingDependencies: String[]\n\t// An array of paths (not existing files) on which the result depends on\n\n\t// result.contextDependencies: String[]\n\t// An array of paths (directories) on which the result depends on\n})\n```\n\nMore documentation following...\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpack%2Floader-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebpack%2Floader-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpack%2Floader-runner/lists"}