{"_id":"awesome-node-loader","_rev":"8-b98f91ee4075cff50d85fecf9eb15cf7","time":{"1.0.0":"2018-03-02T11:07:14.396Z","created":"2018-03-03T16:27:33.669Z","1.0.1":"2018-03-03T16:27:33.799Z","modified":"2022-06-13T03:53:14.343Z","1.1.0":"2018-03-22T11:24:21.530Z","1.1.1":"2018-06-28T22:13:42.961Z"},"name":"awesome-node-loader","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.1":{"name":"awesome-node-loader","version":"1.0.1","description":"Loader for Node files with webpack v4 support","main":"index.js","repository":{"type":"git","url":"git+https://github.com/gurisko/awesome-node-loader.git"},"scripts":{},"keywords":["node","native","loader"],"author":{"name":"Maciej Małecki","email":"smt116@gmail.com"},"contributors":[{"name":"Matus Gura","email":"matus.gura@gmail.com"}],"license":"MIT","dependencies":{"loader-utils":"^1.1.0"},"gitHead":"b166f7367e7ce0bef8d0c05c92d49da85f3dca58","bugs":{"url":"https://github.com/gurisko/awesome-node-loader/issues"},"homepage":"https://github.com/gurisko/awesome-node-loader#readme","_id":"awesome-node-loader@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.3","_npmUser":{"name":"gurisko","email":"matus.gura@gmail.com"},"dist":{"integrity":"sha512-hVWxpTuF4Fy7G7YJcVxCBlxfKA6p7T+R4G4KmFGO30+Rmm8n/ycLRKpgVLVi4WJqjqYpjzR2+pQmc4ZM/fYo/w==","shasum":"32ab79b70b52f561a94f4b564658d80d6f3dbdec","tarball":"https://registry.npmjs.org/awesome-node-loader/-/awesome-node-loader-1.0.1.tgz","fileCount":5,"unpackedSize":4588,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAb2ucnkVuCG2UvTc+7+dfq3s4i0ppoaV4SrddAXbFwsAiAKc0xVS3E4tZNyQ7QIoXrFV392MWf0dJ0SRe2lDgCbQg=="}]},"maintainers":[{"name":"gurisko","email":"matus.gura@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/awesome-node-loader_1.0.1_1520094453670_0.9275676388873151"},"_hasShrinkwrap":false},"1.1.0":{"name":"awesome-node-loader","version":"1.1.0","description":"Loader for Node files with webpack v4 support","main":"index.js","repository":{"type":"git","url":"https://github.com/gurisko/awesome-node-loader"},"scripts":{},"keywords":["node","native","loader"],"author":{"name":"Maciej Małecki","email":"smt116@gmail.com"},"contributors":[{"name":"Matus Gura","email":"matus.gura@gmail.com"}],"license":"MIT","dependencies":{"loader-utils":"^1.1.0"},"licenseText":"MIT License\n\nCopyright (c) 2017 Maciej Malecki\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"awesome-node-loader@1.1.0","dist":{"shasum":"95cf054ec2fa233c38f29ce18cc59b0ef0c002db","tarball":"https://registry.npmjs.org/awesome-node-loader/-/awesome-node-loader-1.1.0.tgz","fileCount":5,"unpackedSize":4138,"integrity":"sha512-WmVhrqW8zWdI3qkY2pMZvzotdZOp6MydCPClYNOg+UpbdluPullKg0x4ozevO7STaYBONRE8++T9k2EHFFmiMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF4WS3Ny0oOCnx8uaewVOmNmorKh6ZgP6C1aGenrpGkeAiBwsIWe7NJyvX5neYDwXGUF/DmFUq71JiJ8en5r71ZQYA=="}]},"maintainers":[{"name":"gurisko","email":"matus.gura@gmail.com"}],"_npmUser":{"name":"gurisko","email":"matus.gura@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/awesome-node-loader_1.1.0_1521717861484_0.7396813471278041"},"_hasShrinkwrap":false},"1.1.1":{"name":"awesome-node-loader","version":"1.1.1","description":"Loader for Node files with webpack v4 support","main":"index.js","repository":{"type":"git","url":"https://github.com/gurisko/awesome-node-loader"},"scripts":{},"keywords":["webpack","loader","node","native","electron","aws","pkg"],"author":{"name":"Maciej Małecki","email":"smt116@gmail.com"},"contributors":[{"name":"Matus Gura","email":"matus.gura@gmail.com"}],"license":"MIT","dependencies":{"loader-utils":"^1.1.0"},"licenseText":"MIT License\n\nCopyright (c) 2017 Maciej Malecki\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"awesome-node-loader@1.1.1","dist":{"shasum":"a402b7f09f72cd1c7b1a65e75180236f2f5438d9","tarball":"https://registry.npmjs.org/awesome-node-loader/-/awesome-node-loader-1.1.1.tgz","fileCount":5,"unpackedSize":4429,"integrity":"sha512-XpjW2F1NNkWaseKQdNFS/8GiYIQBapTsYBtZzKM479ldeBK24V6rJNA+YBHeyzMes7PVkYQ39+ZDGIpDYeJfww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHxmBZ3ccgrG5p29fmxNiVgQGsysACPinqBUArPFvzkLAiEAvR1OBbv1CwByPm9j5MGbCI5BdSAwBKxJXdGf8lPd9ZY="}]},"maintainers":[{"name":"gurisko","email":"matus.gura@gmail.com"}],"_npmUser":{"name":"gurisko","email":"matus.gura@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/awesome-node-loader_1.1.1_1530224022888_0.8621367741233636"},"_hasShrinkwrap":false}},"maintainers":[{"name":"gurisko","email":"matus.gura@gmail.com"}],"description":"Loader for Node files with webpack v4 support","keywords":["webpack","loader","node","native","electron","aws","pkg"],"repository":{"type":"git","url":"https://github.com/gurisko/awesome-node-loader"},"contributors":[{"name":"Matus Gura","email":"matus.gura@gmail.com"}],"author":{"name":"Maciej Małecki","email":"smt116@gmail.com"},"license":"MIT","readme":"Node Native Loader [![npm version](https://badge.fury.io/js/awesome-node-loader.svg)](https://badge.fury.io/js/awesome-node-loader)\n============\n\nModule for loading native node files for webpack (including webpack@4 support).\n\n## Installation\n\nAdd the package to the `package.json` file:\n\n```bash\n$ npm install awesome-node-loader --save-dev\n$ yarn add --dev awesome-node-loader\n```\n\n## Usage\n\nUpdate `webpack.config.js` file's rules:\n\n```javascript\nmodule: {\n  rules: [{\n    test: /\\.node$/,\n    loader: 'awesome-node-loader'\n  }]\n}\n```\n\n## Options\n\nIt is possible to adjust options:\n\n```javascript\nmodule: {\n  rules: [{\n    test: /\\.node$/,\n    loader: 'awesome-node-loader',\n    options: {\n      name: '[hex].[ext]',\n      rewritePath: path.resolve(__dirname, 'dist'),\n      useDirname: false\n    }\n  }]\n}\n```\n\n### `name`\n\nThis option allows to change the file name in the output directory. You can use all placeholders defined in the [loader-utils](https://github.com/webpack/loader-utils/tree/v1.1.0#interpolatename) package.\n\n### `rewritePath`\n\nThis option allows to set an absolute path. Note that it needs to remain `undefined` if you are building a package with embedded files. (Default is `undefined`)\n\n### `useDirname`\n\nThis option chooses in between `__dirname` and `path.dirname(process.execPath)` when a relative `rewritePath` is passed. (Default is `true`)\n","readmeFilename":"README.md"}