{"name":"create-require","version":"1.0.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","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":"f9a27c5af8798700a29772734903f3103eb2ab5a","bugs":{"url":"https://github.com/nuxt-contrib/create-require/issues"},"homepage":"https://github.com/nuxt-contrib/create-require#readme","_id":"create-require@1.0.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ulvjG1BRx+/axhKtEwVikGYx6PpWhbgadkvqVEDcM1Gd8qsCo1bqbOUFM14j+EXg1ygjx490FPnJ5sORbXp2KQ==","shasum":"eee9b2e1042076bd4bba3064c8de0a7a0c6af52f","tarball":"http://registry-npm.ywwl.com/create-require/download/create-require-1.0.0.tgz","fileCount":6,"unpackedSize":4571,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezDjjCRA9TVsSAnZWagAAOIMP/RYOgDGAtSbaKpxgVrEP\ndCCcVAXDG9CfEvOVkjhHW3F/W+KnG+tAR7VpQ6s2XfoTfO2USzyoCMU/WUcg\nSFwbjUGx9YqM8M7uvu6GknPoLw3+HwNykixhwTyUr/NYNZaU4eOI3wZwlzZk\nzmwh/KO60efeaZ25cBKPae5d/St2RmVywEMycMdEPfZG+Rqakr6LqA8Nsy5q\nRCMoRp2BnilwVbAzm43Laz0xR1lvHybrQxn279UiDRUSPVqNzi+qn7D0JcFx\nZbteq0NUDbl/fVuN8YCPvg2wT9eQNhkm3JA9sJTLQyVFQeBp/pBzWxVM/4E2\n6n/OPXIm2EKniAcIda+RYiKNaUVePxRcnf+Agg17sNKnch9YI3GajItsXe3N\nhil0H8PKnp6804kHEnqMkOSPI/tXn2Cuy+DvzoVj16/8tvyKB0jNSYuVohzX\nZZCF8F8dksAZCiLfrFzW1mDPEEXkNzBrh67C+W4MZ20z16HEBSqPl4izNL0U\nMlSrp00U6oRm1qNrjP1bX75WuV/VF4QZLKbd8G2B7TAs1x5lVR+QnshbnNl9\n8b1YudspU9bcpmCu7kXQLLQG6vyrgSPpNB2OGQZsActNzVHNvD3gPlIYH1aQ\nnNwTfdK+W9XsA+T9eXq2WoBTrQM8I7Jrz/HIZnnZUJMwcFSI/KvcypZICwz+\n3kDT\r\n=VAFY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOG2HI9wyK3Xq4PMnTQHo20Q1wzn1pSF4dcWBJwWF12gIgRaNT8WyN6JDZNPdMPwxirHlcjpIf+gC3dCh9DNshMFc="}],"size":2127,"noattachment":false,"key":"/create-require/-/create-require-1.0.0.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.0_1590442210657_0.8373511931100219"},"_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":1590442210761,"_cnpm_publish_time":1590442210761,"dist-tags":{"latest":"1.1.1"}}