{"name":"import-fresh","version":"3.0.0","description":"Import a module while bypassing the cache","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/import-fresh.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava","heapdump":"node heapdump.js"},"keywords":["require","cache","uncache","uncached","module","fresh","bypass"],"dependencies":{"parent-module":"^1.0.0","resolve-from":"^4.0.0"},"devDependencies":{"ava":"^1.0.1","heapdump":"^0.3.12","xo":"^0.23.0"},"gitHead":"0bf56d798cf5f6c845d3f32b5908b2f4e952f7d0","bugs":{"url":"https://github.com/sindresorhus/import-fresh/issues"},"homepage":"https://github.com/sindresorhus/import-fresh#readme","_id":"import-fresh@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-pOnA9tfM3Uwics+SaBLCNyZZZbK+4PTu0OPZtLlMIrv17EdBoC15S9Kn8ckJ9TZTyKb3ywNE5y1yeDxxGA7nTQ==","shasum":"a3d897f420cab0e671236897f75bc14b4885c390","tarball":"http://registry-npm.ywwl.com/import-fresh/download/import-fresh-3.0.0.tgz","fileCount":4,"unpackedSize":3658,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcIlmcCRA9TVsSAnZWagAAV5cQAJsYOnPbZc4Zq52zI4Ug\n1HWTZGWJtTFl+Q+oPmUyHgJ/URc2TbmWZOm4FMh22Cp5W9bqD+vNp/5d6lkt\n8vsLm+aHlLgFKBCp8fffH/DZnnYemsj2yWx4UAv/09HYfbmpLwh+AcY48Z0O\n5W8uIGD95vZyXGUQ0HZ6IsJFFotLrD5PKR1I4aMzltK1bSbPZRa6PR6f052T\n4WXhanMMlM1HwNlv53j6qpgErEuFzw7TmVyEoe74TNV6p9ZDOdPn/WoN9ZQk\nzNcUW6g6+EijAppxKGpeqWFKDsb04pDzHu1zSxt7yLDvH1MFnH7vRAU4CBql\nZEG3Y6MyDJZenkyr+Mm7bQwZMYySRVgpjSTIkocMc1p3eUEwOUD7IZ6YhbPL\nTcvvI1adpdoQqvF/dRH1wDgbIgTr+Js4JS5l7ihvkEXSnTZulUMvJirjHPJP\nJq8OhbHO4ebP7TNdFyJlRywtxVVFvMGIbTYxnQnmlLORaJcA7v1eoFFQavCU\n/EH194VooCS27mii5Wt5VvRqOr6sW228sw+SPKsOz/wVR6fOjqmymI1sLvtA\nZWWSmR+fdov3dTWjT4v3HskDQiqvrlnZmlkpMPMS/2FNIHh7DO/XlkBQhFHc\n9myB1pW2Xp+abXVhlZEGG60rmmZ8r0QRWVXx1b2Qy0MjsuJ+U/JTX3Cgooir\nK+BT\r\n=Jbhi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvwQmtVMnyePgjzxOGaZQgR2zYT66n+/c2nX6GqmBycwIhAJkSc85yBt9z4iJcHW0EarBMTKW8X0duTbh9eYMd57Ht"}],"size":1841,"noattachment":false,"key":"/import-fresh/-/import-fresh-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/import-fresh_3.0.0_1545755035608_0.9390160260884601"},"_hasShrinkwrap":false,"readme":"# import-fresh\n\n> Import a module while bypassing the [cache](https://nodejs.org/api/modules.html#modules_caching)\n\nUseful for testing purposes when you need to freshly import a module.\n\n## Install\n\n```\n$ npm install import-fresh\n```\n\n## Usage\n\n```js\n// foo.js\nlet i = 0;\nmodule.exports = () => ++i;\n```\n\n```js\nconst importFresh = require('import-fresh');\n\nrequire('./foo')();\n//=> 1\n\nrequire('./foo')();\n//=> 2\n\nimportFresh('./foo')();\n//=> 1\n\nimportFresh('./foo')();\n//=> 1\n```\n\n## import-fresh for enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of import-fresh and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-import-fresh?utm_source=npm-import-fresh&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)\n\n## Related\n\n- [clear-module](https://github.com/sindresorhus/clear-module) - Clear a module from the import cache\n- [import-from](https://github.com/sindresorhus/import-from) - Import a module from a given path\n- [import-cwd](https://github.com/sindresorhus/import-cwd) - Import a module from the current working directory\n- [import-lazy](https://github.com/sindresorhus/import-lazy) - Import modules lazily\n","publish_time":1545755035753,"_cnpm_publish_time":1545755035753,"dist-tags":{"latest":"4.0.1"}}