{"name":"create-require","version":"1.0.2","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":"55d7f6634f01c3f8dac965382faeeb6efb98633a","bugs":{"url":"https://github.com/nuxt-contrib/create-require/issues"},"homepage":"https://github.com/nuxt-contrib/create-require#readme","_id":"create-require@1.0.2","_nodeVersion":"12.16.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ZizhnQtkxsH1XNsnRy8z2SHRTDAem7fmEJbw1oeuTEkgf5sLXtjrm4nhDcYkO0aiZnAk5dwAze65EvTRaOvxZw==","shasum":"03f97ad0822826e506965f385fd90388f5051624","tarball":"http://registry-npm.ywwl.com/create-require/download/create-require-1.0.2.tgz","fileCount":6,"unpackedSize":5509,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe419kCRA9TVsSAnZWagAAr80P/0NFXcfpeSK+dzT3j74e\ncqnQS+hpiXczrS6CYsDojrtaOaiEQYAHvmOt/D2V5CisI7Hir9uUFlq9HG+X\nzgvHNvG/cw04+Jqbji07fw4k682h9xD5A8clwHiEkPUUMxRFENJyxCDwe3/F\nOHWFIgEh9k/MDi304Y5HJiuZ633Nk4K7ORsJW50DI0QcsZpNlPswsPX6r+EU\nVwafRkRZkjJ/UOksX47KHRB7e2Qm5y6afWmF4bp9c2cj4XmZ/X3jAbiO3/Pi\nq5ALZRHkarW1o3NBQA8FYUNuF7Xo8c2wJN4CvfBheNGBmdhMFWygFgJPjBU4\niOB5T1UuVkQchKJ4VPx6F2JJS4vIQj/xZCGx97Ky1EVL5WpLgdRiDWaMRjLw\nivKakxlPUVADoGXZ2CTZAnEDvCN7PnKGwD3NQVhdLgtiBARa7yC44vigD9B8\no8lp1lpji0fknEWO57wBsuKhNF+uWay/3i0KxwfDzAQc147zZB9Pg6DflBxj\nQ7RBo8JgUnMhM0r3LSLuTLBTnNR3u/Kvdc+0IWsr5drvqtzYfJATdRldS2Xy\nbW86wS9+W9LTmqyg4dRepcvYMVuZGWXoSA9twFzhOc8rZKCLkYlcwTUKaHre\n15BXh9wMNy1ak0TP2AF4JNNQtgGypPlI5NG4Wasy898Xv0ns6Jg0uvgTHXV+\nviMU\r\n=anlb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICcjdKjukPFGch1aVZk39Tf7IBRdy7eBEjTFJMO8ucPaAiBcgxrQflTU9GQxiF0S7MTHrKZoYZ4fUdPfeyDrTe73GA=="}],"size":2483,"noattachment":false,"key":"/create-require/-/create-require-1.0.2.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.2_1591959395925_0.016313772830796935"},"_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":1591959396090,"_cnpm_publish_time":1591959396090,"dist-tags":{"latest":"1.1.1"}}