{"name":"loader-runner","version":"4.3.1","keywords":["webpack","loader"],"author":{"name":"Tobias Koppers @sokra"},"license":"MIT","_id":"loader-runner@4.3.1","maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"},{"name":"jhnns","email":"mail@johannesewald.de"},{"name":"evilebottnawi","email":"sheo13666q@gmail.com"}],"homepage":"https://github.com/webpack/loader-runner#readme","bugs":{"url":"https://github.com/webpack/loader-runner/issues"},"dist":{"shasum":"6c76ed29b0ccce9af379208299f07f876de737e3","tarball":"http://registry-npm.ywwl.com/loader-runner/download/loader-runner-4.3.1.tgz","fileCount":6,"integrity":"sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q==","signatures":[{"sig":"MEYCIQCL6AGRpw7SAdvST1aXXZMolX2jSZoaQZjgkgGRlOZNHwIhALrHHQnIG0QrdDPTU9yONLSoM/Ar//uxch7GX2goHLGh","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20487,"size":6225,"noattachment":false,"key":"/loader-runner/-/loader-runner-4.3.1.tgz"},"main":"lib/LoaderRunner.js","engines":{"node":">=6.11.5"},"funding":{"url":"https://opencollective.com/webpack","type":"opencollective"},"gitHead":"9fa0836b81bd9723b35f1379e47f247fe8dd9fd8","scripts":{"fix":"npm run fix:code && npm run fmt","fmt":"npm run fmt:base -- --log-level warn --write","lint":"npm run lint:code && npm run fmt:check","test":"npm run test:basic","pretest":"npm run lint","fix:code":"npm run lint:code -- --fix","fmt:base":"prettier --cache --ignore-unknown .","fmt:check":"npm run fmt:base -- --check","lint:code":"eslint --cache .","test:basic":"mocha --reporter spec","test:cover":"nyc --reporter=lcov npm run test:basic"},"_npmUser":{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},"repository":{"url":"git+https://github.com/webpack/loader-runner.git","type":"git"},"_npmVersion":"10.9.2","description":"Runs (webpack) loaders","directories":{},"_nodeVersion":"22.15.1","_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","mocha":"^3.2.0","eslint":"^9.28.0","should":"^8.0.2","globals":"^16.2.0","prettier":"^3.5.3","@eslint/js":"^9.28.0","eslint-plugin-n":"^17.19.0","@eslint/markdown":"^7.1.0","eslint-plugin-jest":"^28.12.0","eslint-plugin-jsdoc":"^54.1.1","eslint-plugin-import":"^2.31.0","eslint-config-webpack":"^4.6.1","eslint-plugin-unicorn":"^60.0.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.4.1","@stylistic/eslint-plugin":"^5.2.3"},"_npmOperationalInternal":{"tmp":"tmp/loader-runner_4.3.1_1759930534973_0.7155856507055054","host":"s3://npm-registry-packages-npm-production"},"readme":"# loader-runner\n\n```js\nimport { runLoaders } from \"loader-runner\";\n\nrunLoaders(\n\t{\n\t\tresource: \"/abs/path/to/file.txt?query\",\n\t\t// String: Absolute path to the resource (optionally including query string)\n\n\t\tloaders: [\"/abs/path/to/loader.js?query\"],\n\t\t// String[]: Absolute paths to the loaders (optionally including query string)\n\t\t// {loader, options}[]: Absolute paths to the loaders with options object\n\n\t\tcontext: { minimize: true },\n\t\t// Additional loader context which is used as base context\n\n\t\tprocessResource: (loaderContext, resourcePath, callback) => {\n\t\t\t// ...\n\t\t},\n\t\t// Optional: A function to process the resource\n\t\t// Must have signature function(context, path, function(err, buffer))\n\t\t// By default readResource is used and the resource is added a fileDependency\n\n\t\treadResource: fs.readFile.bind(fs),\n\t\t// Optional: A function to read the resource\n\t\t// Only used when 'processResource' is not provided\n\t\t// Must have signature function(path, function(err, buffer))\n\t\t// By default fs.readFile is used\n\t},\n\t(err, result) => {\n\t\t// err: Error?\n\t\t// result.result: [Buffer | String, SourceMap?, Meta?]\n\t\t// The result as an array matching the arguments passed by the final normal loader\n\t\t// (typically [content, sourceMap, meta])\n\t\t// only available when no error occurred\n\t\t// result.resourceBuffer: Buffer\n\t\t// The raw resource as Buffer (useful for SourceMaps)\n\t\t// only available when no error occurred\n\t\t// result.cacheable: Bool\n\t\t// Is the result cacheable or do it require reexecution?\n\t\t// result.fileDependencies: String[]\n\t\t// An array of paths (existing files) on which the result depends on\n\t\t// result.missingDependencies: String[]\n\t\t// An array of paths (not existing files) on which the result depends on\n\t\t// result.contextDependencies: String[]\n\t\t// An array of paths (directories) on which the result depends on\n\t}\n);\n```\n\nMore documentation following...\n","publish_time":1759930535185,"_cnpm_publish_time":1759930535185,"dist-tags":{"latest":"4.3.2","old":"2.4.0"}}