{"name":"@utoo/loader-runner","version":"1.0.1","keywords":["webpack","loader"],"author":{"name":"Tobias Koppers @sokra"},"license":"MIT","_id":"@utoo/loader-runner@1.0.1","maintainers":[{"name":"afc163","email":"afc163@gmail.com"},{"name":"elrrrrrrr","email":"elrrrrrrr@gmail.com"},{"name":"xusd320","email":"xusd320@gmail.com"}],"homepage":"https://github.com/webpack/loader-runner#readme","bugs":{"url":"https://github.com/webpack/loader-runner/issues"},"dist":{"shasum":"e467adca25758f0aae67f2850c4a379abab9430b","tarball":"http://registry-npm.ywwl.com/@utoo/loader-runner/download/@utoo/loader-runner-1.0.1.tgz","fileCount":6,"integrity":"sha512-rPKoXKZa9oVjKP4RfjgBSm25JjS0Xrkc53Qjcx4jdV040RmzTKLQ+gtU1+4dUl9gIwuszF3k/oAwUb6VfpRSaA==","signatures":[{"sig":"MEQCIEQwUAGgP183luC0TzCVXL9MFgDlRQvBTdArdJWV/IXDAiBMpgFgdrzu6SUSm3WtO5jxddPbTLOud/w6Pk09BYcDOw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17944,"size":5375,"noattachment":false,"key":"/@utoo/loader-runner/-/@utoo/loader-runner-1.0.1.tgz"},"main":"lib/LoaderRunner.js","engines":{"node":">=6.11.5"},"gitHead":"af26f80229f062ac55e4d68f16fe9e5edc87b7e0","_npmUser":{"name":"xusd320","email":"xusd320@gmail.com"},"repository":{"url":"git+https://github.com/webpack/loader-runner.git","type":"git"},"_npmVersion":"10.8.2","description":"Runs (webpack) loaders","directories":{},"_nodeVersion":"20.18.3","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/loader-runner_1.0.1_1745244153744_0.6863223867423502","host":"s3://npm-registry-packages-npm-production"},"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","publish_time":1745244153941,"_cnpm_publish_time":1745244153941,"dist-tags":{"latest":"1.0.1"}}