{"_id":"@utoo/loader-runner","_rev":"4272423","name":"@utoo/loader-runner","description":"Runs (webpack) loaders","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"afc163","email":""},{"name":"elrrrrrrr","email":""},{"name":"xusd320","email":""},{"name":"zoomdong07","email":""}],"time":{"modified":"2026-04-06T16:48:38.000Z","created":"2025-04-21T13:51:06.801Z","1.0.1":"2025-04-21T14:02:33.941Z","1.0.0":"2025-04-21T13:51:06.801Z"},"users":{},"author":{"name":"Tobias Koppers @sokra"},"repository":{"type":"git","url":"git+https://github.com/webpack/loader-runner.git"},"versions":{"1.0.1":{"name":"@utoo/loader-runner","version":"1.0.1","description":"Runs (webpack) loaders","main":"lib/LoaderRunner.js","repository":{"type":"git","url":"git+https://github.com/webpack/loader-runner.git"},"keywords":["webpack","loader"],"author":{"name":"Tobias Koppers @sokra"},"license":"MIT","bugs":{"url":"https://github.com/webpack/loader-runner/issues"},"homepage":"https://github.com/webpack/loader-runner#readme","engines":{"node":">=6.11.5"},"_id":"@utoo/loader-runner@1.0.1","gitHead":"af26f80229f062ac55e4d68f16fe9e5edc87b7e0","_nodeVersion":"20.18.3","_npmVersion":"10.8.2","dist":{"shasum":"e467adca25758f0aae67f2850c4a379abab9430b","size":5375,"noattachment":false,"key":"/@utoo/loader-runner/-/@utoo/loader-runner-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@utoo/loader-runner/download/@utoo/loader-runner-1.0.1.tgz"},"_npmUser":{"name":"xusd320","email":"xusd320@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"elrrrrrrr","email":""},{"name":"xusd320","email":""},{"name":"zoomdong07","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/loader-runner_1.0.1_1745244153744_0.6863223867423502"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-21T14:02:33.941Z","publish_time":1745244153941,"_source_registry_name":"default","_cnpm_publish_time":1745244153941},"1.0.0":{"name":"@utoo/loader-runner","version":"1.0.0","description":"Runs (webpack) loaders","main":"lib/LoaderRunner.js","scripts":{"lint":"eslint lib test","pretest":"npm run lint","test":"mocha --reporter spec","precover":"npm run lint","cover":"istanbul cover node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/webpack/loader-runner.git"},"keywords":["webpack","loader"],"author":{"name":"Tobias Koppers @sokra"},"license":"MIT","bugs":{"url":"https://github.com/webpack/loader-runner/issues"},"homepage":"https://github.com/webpack/loader-runner#readme","engines":{"node":">=6.11.5"},"devDependencies":{"eslint":"^3.12.2","eslint-plugin-node":"^3.0.5","eslint-plugin-nodeca":"^1.0.3","istanbul":"^0.4.1","mocha":"^3.2.0","should":"^8.0.2"},"_id":"@utoo/loader-runner@1.0.0","_nodeVersion":"20.18.3","_npmVersion":"10.8.2","dist":{"shasum":"54b2b701e95863b9e78a3dad63f7bb7032969452","size":5557,"noattachment":false,"key":"/@utoo/loader-runner/-/@utoo/loader-runner-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@utoo/loader-runner/download/@utoo/loader-runner-1.0.0.tgz"},"_npmUser":{"name":"xusd320","email":"xusd320@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"elrrrrrrr","email":""},{"name":"xusd320","email":""},{"name":"zoomdong07","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/loader-runner_1.0.0_1745243466622_0.8681848682393576"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-21T13:51:06.801Z","publish_time":1745243466801,"_source_registry_name":"default","_cnpm_publish_time":1745243466801}},"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) => { ... },\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","_attachments":{},"homepage":"https://github.com/webpack/loader-runner#readme","bugs":{"url":"https://github.com/webpack/loader-runner/issues"},"license":"MIT"}