{"_id":"@billykwok/combine-loader","_rev":"2-966239a1d5d9697c8e9f91c8bfbd12f9","name":"@billykwok/combine-loader","dist-tags":{"latest":"0.5.0"},"versions":{"0.5.0":{"name":"@billykwok/combine-loader","version":"0.5.0","description":"webpack loader to combine results from multiple loaders into one object","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","clean":"del-cli ./example/build/ ./lib/","develop":"babel src --watch --out-dir lib","jest":"jest","lint":"eslint .","prepublish":"yarn run build","test":"yarn run clean && yarn run build && yarn run lint && yarn run jest"},"repository":{"type":"git","url":"git+https://github.com/billykwok/combine-loader.git"},"keywords":["combine","loader","webpack"],"author":{"name":"Billy Kwok","email":"xobkwok@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/billykwok/combine-loader/issues"},"homepage":"https://github.com/billykwok/combine-loader#readme","dependencies":{"loader-utils":"^1.1.0"},"devDependencies":{"@babel/cli":"^7.2.0","@babel/core":"^7.2.0","@babel/preset-env":"^7.2.0","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^23.6.0","del-cli":"^1.1.0","eslint":"^5.10.0","eslint-plugin-prettier":"^3.0.0","front-matter-loader":"^0.2.0","highlight.js":"^9.13.1","html-loader":"^0.5.5","jest":"^23.6.0","json-loader":"^0.5.7","markdown-it":"^8.4.2","markdown-it-loader":"^0.7.0","prettier":"^1.15.3","raw-loader":"^0.5.1","webpack":"^4.27.1"},"jest":{"roots":["<rootDir>/example","<rootDir>/src"],"testEnvironment":"node"},"gitHead":"5e3f0c8c98c9a54b4e777edcfc68f24ceb7c0c68","_id":"@billykwok/combine-loader@0.5.0","_npmVersion":"6.4.1","_nodeVersion":"11.4.0","_npmUser":{"name":"billykwok","email":"xobkwok@gmail.com"},"dist":{"integrity":"sha512-FYtKOHIV+UHu2085RWrRCZLVXE7Wjb7TLZRqQnKiPaNy4tWIRX76bOzUnHgLDFuxg6BvBs7OmP51U+G0UxVDvA==","shasum":"ffcd14368f3a6f1062be06e1d72ee85666011a58","tarball":"https://registry.npmjs.org/@billykwok/combine-loader/-/combine-loader-0.5.0.tgz","fileCount":11,"unpackedSize":279625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDSqACRA9TVsSAnZWagAA3BMP/iCvqcXBEMsvCiO1uXqe\n2Q3IjTj3vETp96/xfrV4Ub9atqVKcxkjHLVsRkfNbHOYEgH6MMPmcqs6OIkJ\nfDDZiRwoTYfaWju1lDk9GNOy1RqI01bqkeSFIeEdg66wErsyTYb1J7i3LZw+\nD7d/edHjTk77Oq4xbbY0xZNVbWYLAqoS2lK6SNIUs7hXRtYpGPXknQ4Jr2/W\n3eJyQ3tn8+4Qd/+lqO2aUzJHSIvjNdpgv/ECdHN6+Pch1nFZ7Kp7gETBomGJ\nCPBOnFStWOLA0yULALc193Y2f3iPSQqgBDPTEiOvrGm8VAjnGPng+f9Ak4n3\nFTmpNqenknKAuPRWOz/ytU3tbpPV7d3rw3n9aQrqo8qgDpL9HH7o8Fe8STeJ\n83loqdovbFBzxt7UntkCv6j0BeO7L92HpUltwLM2v8MCg5rwxw0QhVfF2n+8\ncUv5p0xHS2q9//iaR5/wx0RCo/fbEpJsBWEe6bFp3cQ6ZDYmEpHLoyYnnPBn\n7XJuOv4Zz6GFUvmlJODUbxeSDPrtC/zxG1O3DXd9q7pWJ+pmLy1GyBVTBP7H\nUG1xw5nAoYm5r0oaNrWhq6fzZde6+YRjvwQtmAp3quBNVqdyc4BHbvJDCJS+\n51umQ8u9oSQUFke+/nqH8xwk9cpyTm9mld2l9hrFJa/AmlUurR+FkLUfpR74\ngCFN\r\n=VJzG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGO0ukXxhqFb+UcpZrMneagJg94MGmG0j/LkLYIeE0QpAiEAiZ2LihRfEDwyeV0Qtq9nuCyN0MxuFBbr8e9mHgXtKQw="}]},"maintainers":[{"name":"billykwok","email":"xobkwok@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/combine-loader_0.5.0_1544366719830_0.8895493834612445"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2018-12-09T14:45:19.627Z","0.5.0":"2018-12-09T14:45:20.023Z","modified":"2023-08-24T13:00:38.991Z"},"maintainers":[{"name":"billykwok","email":"xobkwok@gmail.com"}],"description":"webpack loader to combine results from multiple loaders into one object","homepage":"https://github.com/billykwok/combine-loader#readme","keywords":["combine","loader","webpack"],"repository":{"type":"git","url":"git+https://github.com/billykwok/combine-loader.git"},"author":{"name":"Billy Kwok","email":"xobkwok@gmail.com"},"bugs":{"url":"https://github.com/billykwok/combine-loader/issues"},"license":"MIT","readme":"# combine-loader\n\n[![npm version](https://img.shields.io/npm/v/combine-loader.svg)](https://www.npmjs.com/package/combine-loader)\n[![Greenkeeper badge](https://badges.greenkeeper.io/elliottsj/combine-loader.svg)](https://greenkeeper.io/)\n[![Travis CI Build Status](https://travis-ci.org/elliottsj/combine-loader.svg?branch=master)](https://travis-ci.org/elliottsj/combine-loader)\n[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/i2aljhr7inuh9wrf/branch/master?svg=true)](https://ci.appveyor.com/project/elliottsj/combine-loader/branch/master)\n\nwebpack loader to combine results from multiple loaders into one object\n\n## Installation\n\n```shell\nnpm install combine-loader\n```\n\n## Usage\n\nIn your webpack configuration, pass an object as the options for `combine-loader`. Each key-value pair corresponds to the same key in the exported object, using the provided loader string value to load the file. For example:\n\n```js\nmodule.exports = {\n  // ...\n  module: {\n    // ...\n    rules: [\n      {\n        test: /\\.md$/,\n        loader: 'combine-loader',\n        options: {\n          raw: 'raw-loader',\n          frontmatter: ['json-loader', 'front-matter-loader?onlyAttributes'],\n          content: [\n            'html-loader',\n            'markdown-it-loader',\n            'front-matter-loader?onlyBody',\n          ],\n        },\n      }\n    ]\n  }\n}\n```\n\nIn the above example, the final exported value for **.md** files is an object with keys `raw`, `frontmatter`, and `content`, with values loaded using the provided loaders. In other words, this...\n\n```js\nconst example = require('./example.md')\n```\n\n...is effectively equivalent to this:\n\n```js\nconst example = {\n  raw: require('!raw-loader!./example.md'),\n  frontmatter: require('!json-loader!front-matter-loader?onlyAttributes!./example.md'),\n  content: require('!html-loader!markdown-it-loader!front-matter-loader?onlyBody!./example.md')\n}\n```\n\n[_NOTE: `!` is prepended to override loaders in webpack's config_](https://webpack.js.org/concepts/loaders/#inline)\n","readmeFilename":"README.md"}