File: //opt/code/node_modules/webpack/node_modules/loader-runner/package.json
{
"name": "loader-runner",
"version": "2.3.0",
"description": "Runs (webpack) loaders",
"main": "lib/LoaderRunner.js",
"scripts": {
"beautify-lint": "beautify-lint lib/**.js test/*.js",
"beautify": "beautify-rewrite lib/**.js test/*.js",
"lint": "eslint lib test",
"pretest": "npm run lint && npm run beautify-lint",
"test": "mocha --reporter spec",
"precover": "npm run lint && npm run beautify-lint",
"cover": "istanbul cover node_modules/mocha/bin/_mocha",
"travis": "npm run cover -- --report lcovonly"
},
"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": ">=4.3.0 <5.0.0 || >=5.10"
},
"files": [
"lib/",
"bin/",
"hot/",
"web_modules/",
"schemas/"
],
"devDependencies": {
"beautify-lint": "^1.0.4",
"codecov.io": "^0.1.6",
"coveralls": "^2.11.6",
"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"
},
"readme": "# loader-runner\r\n\r\n``` js\r\nimport { runLoaders } from \"loader-runner\";\r\n\r\nrunLoaders({\r\n\tresource: \"/abs/path/to/file.txt?query\",\r\n\t// String: Absolute path to the resource (optionally including query string)\r\n\r\n\tloaders: [\"/abs/path/to/loader.js?query\"],\r\n\t// String[]: Absolute paths to the loaders (optionally including query string)\r\n\t// {loader, options}[]: Absolute paths to the loaders with options object\r\n\r\n\tcontext: { minimize: true },\r\n\t// Additional loader context which is used as base context\r\n\r\n\treadResource: fs.readFile.bind(fs)\r\n\t// A function to read the resource\r\n\t// Must have signature function(path, function(err, buffer))\r\n\r\n}, function(err, result) {\r\n\t// err: Error?\r\n\r\n\t// result.result: Buffer | String\r\n\t// The result\r\n\r\n\t// result.resourceBuffer: Buffer\r\n\t// The raw resource as Buffer (useful for SourceMaps)\r\n\r\n\t// result.cacheable: Bool\r\n\t// Is the result cacheable or do it require reexecution?\r\n\r\n\t// result.fileDependencies: String[]\r\n\t// An array of paths (files) on which the result depends on\r\n\r\n\t// result.contextDependencies: String[]\r\n\t// An array of paths (directories) on which the result depends on\r\n})\r\n```\r\n\r\nMore documentation following...\r\n\r\n",
"readmeFilename": "README.md",
"_id": "loader-runner@2.3.0",
"dist": {
"shasum": "0f6b8036038f3ecfd00504fe4e1800ed43ea11a4"
},
"_from": "loader-runner@^2.3.0",
"_resolved": "http://registry.npmjs.org/loader-runner/-/loader-runner-2.3.0.tgz"
}