{"name":"create-require","version":"1.0.1","description":"Polyfill for Node.js module.createRequire (<= v12.2.0)","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/create-require.git"},"license":"MIT","contributors":[{"name":"Maël Nison","email":"nison.mael@gmail.com"},{"name":"Paul Soporan","email":"paul.soporan@gmail.com"},{"name":"Pooya Parsa","email":"pyapar@gmail.com"}],"main":"./create-require.js","types":"./create-require.d.ts","scripts":{"lint":"eslint .","release":"yarn test && standard-version && git push --follow-tags && npm publish","test:matrix":"tap --no-esm --no-timeout ./test/matrix.js","test":"yarn lint && yarn test:matrix"},"devDependencies":{"@nuxtjs/eslint-config":"latest","eslint":"latest","tap":"latest","standard-version":"latest"},"gitHead":"cff8c3dd25e49eb3a0c2d91af679f8030eb892d9","bugs":{"url":"https://github.com/nuxt-contrib/create-require/issues"},"homepage":"https://github.com/nuxt-contrib/create-require#readme","_id":"create-require@1.0.1","_nodeVersion":"12.16.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ZyXIimEIcq8CWcgMpQ4RxHKSIZN/47eeExkXG5NyA9bGRYqbkCMPvjvwvD74vCPHqAAuCougLTj+jYlpMucXgg==","shasum":"ae71385b65c41ca68f72ab45e10d9ebba1e408a2","tarball":"http://registry-npm.ywwl.com/create-require/download/create-require-1.0.1.tgz","fileCount":6,"unpackedSize":4863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2/KUCRA9TVsSAnZWagAA3/wQAIiMpFIfmYcsT8z/nMJG\n42bjs/ZU972hbISBuQT93C5zU/NENKWG7ScaVRa8uubo69PJVMzdk2lCPb87\nhdsT3DUUYFAV7g9HgUVfRDGC3FKtjb3/t8OeEOqh0ZOzvone0g3XklUU47Ow\nK2r0E3zsp47a6vR6vVTRCnbtVSdStKw4dwxde2AYoUoqoG3FnV8d8oiCr4Pr\nQ2S6h510R9T2mtFAJvjzxz8BpLKngQMs7Y1SUaEMocad0VzWCYzsrfCNiBRT\nyrA6C4U22leFOxGMIhojPkbnLvTrOCDcR3aMcmHXrb4NrZQ/64Dok83qr+HH\na6a1k+qViy9ETF38uLFNGsBIt/2WrweLRYS24nHlnTzsi63+kZBdLpQfIiCn\nXHqCVFfY7I/ar31kU088FKdTlKp1crUtXsK8Zign+w2EIEU1xxytWcuDAtIZ\noZKUTX/uYCF3QEsfGbfzMcORUQV1Oy6wqM74bZsN7nv/yQEkwYh57AFARFCZ\nfDlgRtklreWl+kNY+IYR44p0LXAnk/ACETwV4rp6uYuPZqYbhlF3HnrCJosV\nBsahEAOglk1y8kMQ0hqdCtmWg/gWcMFbvNh0UfCLEgQuStE2PU+S6tgYPHvY\nKk2/Lx5rRFRL3yB2AGXu2ALeeL4VzRGNMJ5qMMxtubAiGthqXnQ1k4ZmtymQ\nXX3i\r\n=Xh6i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAWF/jmAMIWkyOnROvTPXNWqolZwLGpVmCAqJ5B/B0siAiAmvl/MvL636H4U+4POHKGdiyPip/WHN0Jsk1nE5kbStg=="}],"size":2239,"noattachment":false,"key":"/create-require/-/create-require-1.0.1.tgz"},"maintainers":[{"name":"pi0","email":"pyapar@gmail.com"}],"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-require_1.0.1_1591472788300_0.7568583985630097"},"_hasShrinkwrap":false,"readme":"# `create-require`\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Github Actions][github-actions-src]][github-actions-href]\n[![Codecov][codecov-src]][codecov-href]\n\nPolyfill for Node.js [`module.createRequire`](https://nodejs.org/api/modules.html#modules_module_createrequire_filename) (<= v12.2.0)\n\n## Install\n\n```sh\nyarn add create-require\n\nnpm install create-require\n```\n\n## Usage\n\n```ts\nfunction createRequire (filename: string | URL): NodeRequire;\n```\n\n```js\nconst createRequire = require('create-require')\n\nconst myRequire = createRequire('path/to/test.js')\nconst myModule = myRequire('./test-sibling-module')\n```\n\n## License\n\n[MIT](./LICENSE)\n\n<!-- Badges -->\n[npm-version-src]: https://img.shields.io/npm/v/create-require?style=flat-square\n[npm-version-href]: https://npmjs.com/package/create-require\n\n[npm-downloads-src]: https://img.shields.io/npm/dm/create-require?style=flat-square\n[npm-downloads-href]: https://npmjs.com/package/create-require\n\n[github-actions-src]: https://img.shields.io/github/workflow/status/nuxt-contrib/create-require/test/master?style=flat-square\n[github-actions-href]: https://github.com/nuxt-contrib/create-require/actions?query=workflow%3Atest\n\n[codecov-src]: https://img.shields.io/codecov/c/gh/nuxt-contrib/create-require/master?style=flat-square\n[codecov-href]: https://codecov.io/gh/nuxt-contrib/create-require\n","publish_time":1591472788474,"_cnpm_publish_time":1591472788474,"dist-tags":{"latest":"1.1.1"}}