{"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":"http://registry-npm.ywwl.com/@utoo/loader-runner/download/@utoo/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,"size":5557,"noattachment":false,"key":"/@utoo/loader-runner/-/@utoo/loader-runner-1.0.0.tgz"},"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"},"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":1745243466801,"_cnpm_publish_time":1745243466801,"dist-tags":{"latest":"1.0.1"}}