{"_id":"@utoo/loader-runner","_rev":"3-f47d1bdb91a072f7054790bd1550b5e4","name":"@utoo/loader-runner","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@utoo/loader-runner","version":"1.0.0","keywords":["webpack","loader"],"author":{"name":"Tobias Koppers @sokra"},"license":"MIT","_id":"@utoo/loader-runner@1.0.0","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":"54b2b701e95863b9e78a3dad63f7bb7032969452","tarball":"https://registry.npmjs.org/@utoo/loader-runner/-/loader-runner-1.0.0.tgz","fileCount":6,"integrity":"sha512-6YgrfL485qoHN566m4LEmD0cNWW9VvW1JVViimKikY1HT3pFnHdDZsdnRPt2JsUYgC5YXJniZw+uz2PDCMWFsQ==","signatures":[{"sig":"MEUCIBj/bptnAALd7JIIF+pF5DtFO2TBaGqb5Ksa11ngtnPUAiEAiKGQYGC+o2WCWMqoYf1fH8DYWeR+BUD3S/LvWB97L2A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18414},"main":"lib/LoaderRunner.js","engines":{"node":">=6.11.5"},"scripts":{"lint":"eslint lib test","test":"mocha --reporter spec","cover":"istanbul cover node_modules/mocha/bin/_mocha","pretest":"npm run lint","precover":"npm run lint"},"_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,"devDependencies":{"mocha":"^3.2.0","eslint":"^3.12.2","should":"^8.0.2","istanbul":"^0.4.1","eslint-plugin-node":"^3.0.5","eslint-plugin-nodeca":"^1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/loader-runner_1.0.0_1745243466622_0.8681848682393576","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"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":"https://registry.npmjs.org/@utoo/loader-runner/-/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},"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"}}},"time":{"created":"2025-04-21T13:51:06.511Z","modified":"2025-06-20T02:26:06.594Z","1.0.0":"2025-04-21T13:51:06.801Z","1.0.1":"2025-04-21T14:02:33.941Z"},"bugs":{"url":"https://github.com/webpack/loader-runner/issues"},"author":{"name":"Tobias Koppers @sokra"},"license":"MIT","homepage":"https://github.com/webpack/loader-runner#readme","keywords":["webpack","loader"],"repository":{"url":"git+https://github.com/webpack/loader-runner.git","type":"git"},"description":"Runs (webpack) loaders","maintainers":[{"email":"afc163@gmail.com","name":"afc163"},{"email":"elrrrrrrr@gmail.com","name":"elrrrrrrr"},{"email":"xusd320@gmail.com","name":"xusd320"},{"email":"zoomdong07@gmail.com","name":"zoomdong07"}],"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","readmeFilename":"README.md"}