{"name":"create-require","version":"1.1.0","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":"f45cb926b1a6cffb1b879377933155c7ac523a76","bugs":{"url":"https://github.com/nuxt-contrib/create-require/issues"},"homepage":"https://github.com/nuxt-contrib/create-require#readme","_id":"create-require@1.1.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yEFVS7dQjDXp5iOEtWisN4uFmL+pUTyIaEizKda9Eb77XX58p6pgFOLAPaBCP+IR6ZPZ1jgJLAuf+ABk0zXYBQ==","shasum":"8fe85b319928953deef6f0e5c44bfea13e3c81ef","tarball":"http://registry-npm.ywwl.com/create-require/download/create-require-1.1.0.tgz","fileCount":6,"unpackedSize":5895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfuWwJCRA9TVsSAnZWagAAIqgP/0CwCwitygA1K6xsxg7u\nFBQktrgwb5DQllQgsFTjVTfTf8dNuaZvUbVPcvl4nDBssC2GnsrPjAhpMe75\nNDb3f1i2qgZVGP3F5/7iMO1eqcJxPpJOsr6jS1IAxRX3KK6qisBQixQHfaDg\n5k1eCv643RdYgDNExBwfrN/QmiZFUL7NfnYChhQYFDGBWwfzfeB1q+1HUT6Q\n/R2cpLKtKFkaTQGml9a/K1TWu0+/W97mW6oO12hd6x7QbRmB52HgCP3ZVj/L\ny7XuoBciGJS1Q1oC+x0dQkuKGPX6bcvurtloxzKbYB2aQTk8u8mXIw2txaXu\n7zzgCgs2LbQNb0AbhFZfiYb74rpIOEhLz7MIGpI48oRRP0lymereEmk4eMuB\n7c+sGl6rVNwt42EAoXpw/vQam/HFpKtklWCo1HhhRapZHnOjXfxoE6ij+Mkn\n+2GTcGVbtruEQ7TMsHlkUEZmLAEdi9UuD8VtvieHDVhUeBIPQGlf0y7v9gXl\nHCa6LiSQOlP3Gpq7/y5gvnoknN9OYgcJQ6dNRrYpF3eQJeiE9hT6d83LXZNq\nidV/YAcB75rPvrxprWevBnHNpcrQGQ1deJXdpD1sZMJsWp4awN5fshYhDA5Y\nE4j3g828spZW9O7Eorj/02EShHu4/0u0Uxtf385ui12Xhe7xj9d4dx4fp2os\n/6gW\r\n=/NYa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG9QKjxOefA87LVknbgTQ+8725mxehll3t+MKkw0dULAAiEAqX7UKuM5Go1lbS8WJwSijjzK4Ne2aTyN8k+k7NbqTkc="}],"size":2595,"noattachment":false,"key":"/create-require/-/create-require-1.1.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pyapar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-require_1.1.0_1605987337153_0.23552524557699694"},"_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":1605987337292,"_cnpm_publish_time":1605987337292,"dist-tags":{"latest":"1.1.1"}}