{"_id":"lazy-require","_rev":"46-557fd674b3a78fad4dfe4ef82f38d082","name":"lazy-require","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","dist-tags":{"latest":"4.6.0","next":"4.6.0-next.1593742352.14f59c28dd26de3d9f809e36d42360d24b6bed37"},"versions":{"1.0.0":{"name":"lazy-require","version":"1.0.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a missing module, it is automatically installed. If the installation or require fails, the error is returned to the lazy require callback.","homepage":"https://github.com/bevry/lazy-require","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"author":{"name":"Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"name":"balupton","email":"b@lupton.cc"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"http://github.com/bevry/lazy-require.git"},"engines":{"node":">=0.4"},"dependencies":{"extract-opts":"~2.2.0","safeps":"~2.2.3"},"devDependencies":{"rimraf":"~2.2.0","coffee-script":"~1.6.2","joe":"~1.2.0","joe-reporter-console":"~1.2.1","chai":"~1.7.0"},"directories":{"lib":"./out/lib"},"scripts":{"test":"node ./out/test/lazy-require-test.js"},"main":"./out/lib/lazy-require.js","_id":"lazy-require@1.0.0","dist":{"shasum":"63bd15050c2d951c25f141941cfbb89753186ce7","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-1.0.0.tgz","integrity":"sha512-pQUvM0wr2QPFAyjf1b7LH4Bi/3tc2XJ9ayZe9nkUUD2W/hJT9YmqCLLJ1D/qAvyYIYVR9e1EY1HcPbnHatF9Jw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFNsq5I+35hmXmixwBs5anEWhQZtngK3i2YHHHYK6LtGAiBHJKp/6+W8xYQNRTxEATrP3o7cTYm4YVtLyu09lrsviA=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"balupton","email":"b@lupton.cc"}},"2.0.0":{"title":"Lazy Require","name":"lazy-require","version":"2.0.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":{"type":"MIT"},"keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"travis":true,"npm":true,"npmdownloads":true,"david":true,"daviddev":true,"gratipay":"bevry","flattr":"344188/balupton-on-Flattr","paypal":"QB8GQPZAH84N6","bitcoin":"https://coinbase.com/checkouts/9ef59f5479eec1d97d63382c9ebcb93a","wishlist":"http://amzn.com/w/2F8TXKSNAFG4V"},"author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"name":"balupton","email":"b@lupton.cc"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"http://github.com/bevry/lazy-require.git"},"engines":{"node":">=0.4"},"dependencies":{"extract-opts":"^3.0.1","safeps":"^3.0.1"},"devDependencies":{"assert-helpers":"^1.0.2","coffee-script":"^1.9.1","joe":"^1.6.0","joe-reporter-console":"^1.2.1","projectz":"^0.5.0","rimraf":"^2.3.2"},"directories":{"lib":"./out/lib"},"scripts":{"test":"node ./out/test/lazy-require-test.js"},"main":"./out/lib/lazy-require.js","cakeConfiguration":{"COFFEE_SRC_PATH":"src"},"gitHead":"8b1e877ecdbeb8adb68f6cce7b7825b3dd756644","_id":"lazy-require@2.0.0","_shasum":"d289af9fda916247dc71d6d99160c37205af3721","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"balupton","email":"b@lupton.cc"},"dist":{"shasum":"d289af9fda916247dc71d6d99160c37205af3721","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-2.0.0.tgz","integrity":"sha512-PijGzRakZuRu2SZXsp3MLRJ9IYTFFDC1yG00xnggdfDiVEztOHo7P9+eY5VH76RzGUP5RKKGxlPaadDAMvNXsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOWor6/+68llDbsUp4J70ljAq236wjFJeJlG/xM7k8YAIhAMR+/lGxtRAMPP6FOVwp9rC6QupN9FwfXydtwOmneZ+Q"}]}},"2.1.0":{"title":"Lazy Require","name":"lazy-require","version":"2.1.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":{"type":"MIT"},"keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"travis":true,"npm":true,"npmdownloads":true,"david":true,"daviddev":true,"gratipay":"bevry","flattr":"344188/balupton-on-Flattr","paypal":"QB8GQPZAH84N6","bitcoin":"https://bevry.me/bitcoin","wishlist":"https://bevry.me/wishlist"},"author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"name":"balupton","email":"b@lupton.cc"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"RobLoach","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/bevry/lazy-require.git"},"engines":{"node":">=0.12"},"dependencies":{"extract-opts":"^3.0.1","safeps":"^5.1.0"},"devDependencies":{"assert-helpers":"^1.0.2","babel":"^5.8.23","babel-eslint":"^4.1.1","eslint":"^1.3.1","joe":"^1.6.0","joe-reporter-console":"^1.2.1","projectz":"^0.5.0","rimraf":"^2.3.2"},"main":"./es6guardian.js","scripts":{"clean":"node --harmony nakefile.js clean","setup":"node --harmony nakefile.js setup","compile":"node --harmony nakefile.js compile","watch":"node --harmony nakefile.js watch","verify":"node --harmony nakefile.js verify","meta":"node --harmony nakefile.js meta","prepare":"node --harmony nakefile.js prepare","release":"node --harmony nakefile.js release","test":"node --harmony ./es5/test/lazy-require-test.js"},"nakeConfiguration":{"BABEL_SRC_PATH":"es6","ESLINT_SRC_PATH":"es6","YUIDOC_SRC_PATH":"es6"},"gitHead":"2327d4c6987131f0e5517e5a5de3f5d7ac2809b6","_id":"lazy-require@2.1.0","_shasum":"9f48df2af733d99b6200fe69284af614928c03a5","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.3.0","_npmUser":{"name":"balupton","email":"b@lupton.cc"},"dist":{"shasum":"9f48df2af733d99b6200fe69284af614928c03a5","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-2.1.0.tgz","integrity":"sha512-qUD40TxJRJBNdwN55GK8Jq2rzyrjlJA7qXsACEU9NrD1Ne0oZLh8sis1U2F15nll2Ih+Og/O/rlExbFKlAutxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHK4auXJuxlz9UrHgcgcbBd7YCp+GOMxWosS+Fi1rRq9AiAYW1Mgb/3bUXQHABzlKg5e0rqLjwKtDJd/P+6VidNyPg=="}]},"directories":{}},"2.1.1":{"title":"Lazy Require","name":"lazy-require","version":"2.1.1","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":{"type":"MIT"},"keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"travis":true,"npm":true,"npmdownloads":true,"david":true,"daviddev":true,"gratipay":"bevry","flattr":"344188/balupton-on-Flattr","paypal":"QB8GQPZAH84N6","bitcoin":"https://bevry.me/bitcoin","wishlist":"https://bevry.me/wishlist"},"author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"name":"balupton","email":"b@lupton.cc"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"RobLoach","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/bevry/lazy-require.git"},"engines":{"node":">=0.10"},"dependencies":{"extract-opts":"^3.0.1","safeps":"^5.1.0"},"devDependencies":{"assert-helpers":"^1.0.2","babel":"^5.8.23","babel-eslint":"^4.1.1","eslint":"^1.3.1","joe":"^1.6.0","joe-reporter-console":"^1.2.1","projectz":"^0.5.0","rimraf":"^2.3.2"},"main":"./es6guardian.js","scripts":{"clean":"node --harmony nakefile.js clean","setup":"node --harmony nakefile.js setup","compile":"node --harmony nakefile.js compile","watch":"node --harmony nakefile.js watch","verify":"node --harmony nakefile.js verify","meta":"node --harmony nakefile.js meta","prepare":"node --harmony nakefile.js prepare","release":"node --harmony nakefile.js release","test":"node --harmony ./es5/test/lazy-require-test.js"},"nakeConfiguration":{"BABEL_SRC_PATH":"es6","ESLINT_SRC_PATH":"es6","YUIDOC_SRC_PATH":"es6"},"gitHead":"8dfda87f0e08fcf74f9a207b11ca6ee1a4a1b42e","_id":"lazy-require@2.1.1","_shasum":"1180ccb3e144e141d4591324e75bc1cc05019df2","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.3.0","_npmUser":{"name":"balupton","email":"b@lupton.cc"},"dist":{"shasum":"1180ccb3e144e141d4591324e75bc1cc05019df2","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-2.1.1.tgz","integrity":"sha512-vLgFCz7cht7msovmN4sn3vj2b1SOsilpgWo//onEDqFO1m+Za7orMI3kR8ZgHUXkwKuOvP5W7hS9NC5dxxvvhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGTWnVPP1J62hJVssosTzwYx6ymo4sWY+NfTXxUtEX0fAiEArhKaZzW9WW8sDErdf5qwQtG0OO+/5J1Wrrc9vAd4gQ0="}]},"directories":{}},"2.1.2":{"title":"Lazy Require","name":"lazy-require","version":"2.1.2","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","slackin","patreon","gratipay","flattr","paypal","bitcoin","wishlist"],"config":{"patreonUsername":"bevry","gratipayUsername":"bevry","flattrCode":"344188/balupton-on-Flattr","paypalButtonID":"QB8GQPZAH84N6","bitcoinURL":"https://bevry.me/bitcoin","wishlistURL":"https://bevry.me/wishlist","slackinURL":"https://slack.bevry.me"}},"author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"name":"balupton","email":"b@lupton.cc"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"RobLoach","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/bevry/lazy-require.git"},"engines":{"node":">=0.10"},"browsers":false,"dependencies":{"esnextguardian":"^1.2.0","extract-opts":"^3.0.1","safeps":"^6.0.2"},"devDependencies":{"assert-helpers":"^4.1.0","babel-cli":"^6.3.15","babel-preset-es2015":"^6.3.13","eslint":"^1.3.1","joe":"^1.6.0","joe-reporter-console":"^1.2.1","projectz":"^1.0.9","rimraf":"^2.3.2"},"main":"./esnextguardian.js","scripts":{"clean":"node --harmony nakefile.js clean","setup":"node --harmony nakefile.js setup","compile":"node --harmony nakefile.js compile","watch":"node --harmony nakefile.js watch","verify":"node --harmony nakefile.js verify","meta":"node --harmony nakefile.js meta","prepare":"node --harmony nakefile.js prepare","release":"node --harmony nakefile.js release","test":"node --harmony ./es5/test/lazy-require-test.js"},"nakeConfiguration":{"BABEL_SRC_PATH":"esnext","ESLINT_SRC_PATH":"esnext","YUIDOC_SRC_PATH":"esnext"},"gitHead":"fbaf12d05d708d8a659127f6041762e551dbf03f","_id":"lazy-require@2.1.2","_shasum":"cbfb02fd172e34e6d1494864a3e50134bfe22fe1","_from":".","_npmVersion":"3.5.1","_nodeVersion":"5.2.0","_npmUser":{"name":"balupton","email":"b@lupton.cc"},"dist":{"shasum":"cbfb02fd172e34e6d1494864a3e50134bfe22fe1","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-2.1.2.tgz","integrity":"sha512-CsFQaU4t29nDxjjGqoxq5MPGxrfvC2kpdAH6Yx+QJzGl/gVLVz9yi5RsiWeNZhYYuLHjqdq+cNtGjTGlGnhYfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHQwdKXOzL+rTx8q8hvHCdKGMtxQvM6fqCJ26BhY7rotAiEA7MEsh2n1sYdk27ycInjzH/18e0zc2s1JtFD5NhPMXE0="}]},"directories":{}},"2.2.0":{"title":"Lazy Require","name":"lazy-require","version":"2.2.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","slackin","patreon","gratipay","flattr","paypal","bitcoin","wishlist"],"config":{"patreonUsername":"bevry","gratipayUsername":"bevry","flattrUsername":"balupton","paypalURL":"https://bevry.me/paypal","bitcoinURL":"https://bevry.me/bitcoin","wishlistURL":"https://bevry.me/wishlist","slackinURL":"https://slack.bevry.me"}},"author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"name":"balupton","email":"b@lupton.cc"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"RobLoach","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/bevry/lazy-require.git"},"engines":{"node":">=0.10"},"editions":[{"description":"Source + ESNext + Require","entry":"source/index.js","directory":"source","syntaxes":["javascript","esnext","require","let","const","destructuring"]},{"description":"Babel Compiled + ES2015 + Require","entry":"es2015/index.js","directory":"es2015","syntaxes":["javascript","es2015","require"]}],"main":"index.js","browser":"es2015/index.js","dependencies":{"editions":"^1.1.1","extract-opts":"^3.3.1","safeps":"^6.0.2"},"devDependencies":{"assert-helpers":"^4.2.0","babel-cli":"^6.9.0","babel-preset-es2015":"^6.9.0","eslint":"^2.10.2","eslint-plugin-babel":"^3.2.0","joe":"^1.6.0","joe-reporter-console":"^1.2.1","projectz":"^1.1.5","rimraf":"^2.5.2"},"scripts":{"setup":"npm install","clean":"rm -Rf ./docs ./es2015","compile":"npm run compile:es2015","compile:es2015":"babel ./source --out-dir ./es2015 --presets es2015","meta":"npm run meta:projectz","meta:projectz":"projectz compile","prepare":"npm run compile && npm run test && npm run meta","release":"npm run prepare && npm run release:publish && npm run release:tag && npm run release:push","release:publish":"npm publish","release:tag":"git tag v$npm_package_version -a","release:push":"git push origin master && git push origin --tags","pretest":"npm run test:eslint","test:eslint":"eslint ./source","test":"node --harmony -e \"require('editions').requirePackage(process.cwd(), require, 'test.js')\""},"gitHead":"844037ac9f6e988d5e9b12ed086e7c3422357997","_id":"lazy-require@2.2.0","_shasum":"22ff40e5d1e93e475aec4dff693697fcf7b0b16d","_from":".","_npmVersion":"3.8.7","_nodeVersion":"6.0.0","_npmUser":{"name":"balupton","email":"b@lupton.cc"},"dist":{"shasum":"22ff40e5d1e93e475aec4dff693697fcf7b0b16d","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-2.2.0.tgz","integrity":"sha512-yc/gHj5bQoL8qJmNDhdj8nJ3N+75EgZnR6r2PieS9pd7nF65qjYmNeOgtLFByRwKO19P9Fmw9Cyb5vTfFl4qZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAwO4r8fE1EoUSTzukVX1wobUmAo7VCi3LG+6QZiORYXAiEAuvKRIbcUdNFZQIkD6diZTU9c4leyalbDdvO7kDRaz+A="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/lazy-require-2.2.0.tgz_1464345587584_0.9547539830673486"},"directories":{}},"2.3.0-next.1573582413.e44e9f2a580b38a5a8a6aefa42e2447c87ba8481":{"title":"Lazy Require","name":"lazy-require","version":"2.3.0-next.1573582413.e44e9f2a580b38a5a8a6aefa42e2447c87ba8481","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":{"type":"cooperative","url":"https://bevry.me/fund"},"author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=0.10"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 13","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}},{"description":"esnext compiled for node.js 0.10 with require for modules","directory":"edition-node-0.10","entry":"index.js","tags":["javascript","require"],"engines":{"node":"0.10 || 0.12 || 4 || 6 || 8 || 10 || 12 || 13","browsers":false}}],"main":"index.js","browser":"edition-browsers/index.js","dependencies":{"editions":"^2.2.0","errlop":"^1.1.2","extract-opts":"^3.3.1","safeps":"7.0.1"},"devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","assert-helpers":"4.10.0","eslint":"^6.6.0","eslint-config-bevry":"^1.2.1","eslint-config-prettier":"^6.5.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"^3.1.0","prettier":"^1.19.1","projectz":"^1.9.0","rimraf":"2.7.1","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-0.10","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:compile:edition-node-0.10":"env BABEL_ENV=edition-node-0.10 babel --out-dir ./edition-node-0.10 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]},"edition-node-0.10":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"0.10"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"e44e9f2a580b38a5a8a6aefa42e2447c87ba8481","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Require: <code>require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/index.js</code> which uses <a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a> to automatically select the correct edition for the consumers environment</li>\n<li><code>lazy-require/source/index.js</code> is esnext source code with require for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is esnext compiled for browsers with require for modules</li>\n<li><code>lazy-require/edition-node-0.10/index.js</code> is esnext compiled for node.js 0.10 with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n``` javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {/* options */})\nif ( ambi instanceof Error ) {\n\t// Error ....\n\tconsole.log('ambi failed to load because of:', ambi.stack)\n} else {\n\t// Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n```\n\nThe following options are supported:\n\n- `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n- `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://robloach.net\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@2.3.0-next.1573582413.e44e9f2a580b38a5a8a6aefa42e2447c87ba8481","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-YzQa/a39K6ylAM622nZuyZoEW9E0viXY8sFJYnMlhH+uVsQ+WU8tMS+FnIHWqMClU9gbiFgSesowra1n2Yah7A==","shasum":"becd36b7eac62f6382539feed0a59610c87d83ff","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-2.3.0-next.1573582413.e44e9f2a580b38a5a8a6aefa42e2447c87ba8481.tgz","fileCount":10,"unpackedSize":44019,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyvZPCRA9TVsSAnZWagAAmIIP/iT+0/nhxXoxQSms0jh0\nqRDMBS/z5Anw+exX5ytKTVQW/YBrcJ2Cr4RrK36al1aEOEtij7ERiO25ZPa1\ndWHY/Q4irj1k0vjKxdqJlTXOVaE4V07dNY7VrdjYlAauQJEDZ870hoJH/flG\nixlvoTk0uCkWphlaHGVC4+rKCI8EdJc6e/k5+inP0gQiLYk9YmqKLBUE5KuT\nOkk2oJwgLR0MjPstd517Awrzu7SqYz2scLvFaDdB6QdMPc2ZxiBWsx9mPypz\nUS0XDD7GGVWSIc22IhDMbUHB/+81n0VS5xClKNjVRolQwI4Q+0IFUwfgAaMQ\nChxGnTUDQfizWKjxwX/TaPehx+Huj5uO9sN44G9/nsFCFyNU7dzC4wdpkyEl\nNKqPEa9qWgYY4ZZ/BXfgNGX57VFV7iSMyV8VVhkm/a6ihi9B21AFb3PdW6vR\n47gI7z+TJxOpS7wxhcRIsZN9xrcb5/II7Dyr0WlDaXtbOHqbsx+NYWCBnMKi\n3YCtJ+FbDfV7KFW8hAn6Pbzm2VEqC7cQBPFOCApIZmg9gtNyX/ud4+3WhAyq\naMeiUVPY0fzOK+Qf7+cKuxOjTF1elIQRKr+aDwhzAXrLh+Hc7C+puwyoRwSE\n+EeFEkN7b8ZFY4zeIKHq2Uga1uliKFqH6SzwcTAuRiuqNf3VTtJ4gYsxXWqp\n7Yo1\r\n=Jc2d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTivT2B6ZMRju/oYcQsr0CrMZuXZWJQE9w3UOxCPJhfwIhAImkJfQQnXIToZM8qjuQiOy9kjx96kYitilEeHa3fd+f"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_2.3.0-next.1573582413.e44e9f2a580b38a5a8a6aefa42e2447c87ba8481_1573582414674_0.04669225008385158"},"_hasShrinkwrap":false},"2.3.0":{"title":"Lazy Require","name":"lazy-require","version":"2.3.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":{"type":"cooperative","url":"https://bevry.me/fund"},"author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=0.10"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 13","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}},{"description":"esnext compiled for node.js 0.10 with require for modules","directory":"edition-node-0.10","entry":"index.js","tags":["javascript","require"],"engines":{"node":"0.10 || 0.12 || 4 || 6 || 8 || 10 || 12 || 13","browsers":false}}],"main":"index.js","browser":"edition-browsers/index.js","dependencies":{"editions":"^2.2.0","errlop":"^1.1.2","extract-opts":"^3.3.1","safeps":"7.0.1"},"devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","assert-helpers":"4.10.0","eslint":"^6.6.0","eslint-config-bevry":"^1.2.1","eslint-config-prettier":"^6.5.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"^3.1.0","prettier":"^1.19.1","projectz":"^1.9.0","rimraf":"2.7.1","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-0.10","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:compile:edition-node-0.10":"env BABEL_ENV=edition-node-0.10 babel --out-dir ./edition-node-0.10 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]},"edition-node-0.10":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"0.10"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"e44e9f2a580b38a5a8a6aefa42e2447c87ba8481","_id":"lazy-require@2.3.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-0oyw5i/sdYEb+OP+GRt7Wuhwg/p/cB3aIss3RwbFM9pTZQAAvpH3wW3/ja56SGerYTqME41+NvGx3FkSkbXBlA==","shasum":"1120508055f78ff43f445c4cc416d6760a77a5fb","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-2.3.0.tgz","fileCount":10,"unpackedSize":43962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyvcyCRA9TVsSAnZWagAAL5YP/0xCx5c95moJkvArr8+O\ndiuT6J5UIEiyMWkLKSfcDfuiymYTK/6CfPpYRJRyokI8w6Edz1Y/u8GFw0bN\n99jgDAgGlDjZD4EdcWtqx9rWxo++BEQYOPe4T814kf0f0+g/bc3oYUXZpOus\n7xXzeuZR6wwzZCQicv2wVle7SsuBCEx+r1Qg3gVHJTcE+V8YbV3Z69YLI0Sv\nKorpcuUC+IV+yCHd9eL6lAgVgn0pgTnJE8LSQcBJE7SBxr7gpiWgpPVIFqcJ\nbcADl87BBgBQaNHEvrhyrgFJPx1E5w33uvE3Qp3fTqeMh5hUm+Xc9M7oVZ74\nrDLRymTa3n3UwOrmE2DaeEd4KfIVp11wuELbmQnpuG+6+qIllVama78asSqV\nYUB/M/sNMCDyQ6kwwlknGS7O1qx4ARgrMVJp6BrpueYitgbZRXmHEQPvrqbT\nrdBlGTItc4wtpO4RY9cbcGMTSLP4q65VtlxXOhv5v78VQ9hJuVuzbEu5M8fI\n4Of/gUL8LsPFm/EEnYO2qaD6AK+e0a7IXXCrJ9WdA9TEcJ6+tE0Ge9ocsdFZ\nSgGNEChrserLMxdeNdck2TnYRmqLR8sb3BRtP8RmkYX8C7AKuYsqAlZDJcT9\nqQ8ARUpboW0UydjRlhlOuat7NfHUE5YgJZZqiSyeQgZHadoEnjErv3kOk4r+\nvZW+\r\n=5EMf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHQA7XM/Blj2rGpX50hg/7D/PaAA/IIEqFpLl0PrLzB2AiEAhXpMgL3spQU6G2O5w5DQ9WWTW+LTWvHIOxn8JMGZpA0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_2.3.0_1573582642415_0.5932719698489619"},"_hasShrinkwrap":false},"3.0.0-next.1573588019.a632ac136ceb89829d72790f05fc210703877996":{"title":"Lazy Require","name":"lazy-require","version":"3.0.0-next.1573588019.a632ac136ceb89829d72790f05fc210703877996","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":{"type":"cooperative","url":"https://bevry.me/fund"},"author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.1.2","extract-opts":"^3.3.1","safeps":"8.0.0"},"devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","assert-helpers":"^5.2.1","eslint":"^6.6.0","eslint-config-bevry":"^1.2.1","eslint-config-prettier":"^6.5.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"^3.1.0","prettier":"^1.19.1","projectz":"^1.9.0","rimraf":"3.0.0","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"a632ac136ceb89829d72790f05fc210703877996","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Require: <code>require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is esnext source code with require for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is esnext compiled for browsers with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n``` javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {/* options */})\nif ( ambi instanceof Error ) {\n\t// Error ....\n\tconsole.log('ambi failed to load because of:', ambi.stack)\n} else {\n\t// Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n```\n\nThe following options are supported:\n\n- `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n- `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://robloach.net\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@3.0.0-next.1573588019.a632ac136ceb89829d72790f05fc210703877996","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-hc4xmh8A1b7mcD5b/NUdH/7YlYhBVibjK5w9sW1Wqk3wLQDNRkja+0YKxA93K/DTkX/IZ7T5H4Tw64HXh9oJLw==","shasum":"b190d648f8653bd8bbdb3af26c9fbf4b848ab68f","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.0.0-next.1573588019.a632ac136ceb89829d72790f05fc210703877996.tgz","fileCount":8,"unpackedSize":33877,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyww3CRA9TVsSAnZWagAAsSIP/2+qf7Oe4InMIKb/2PnS\n8cVkQxw3WmoHnOlXm7bLaojYEp9ti4aDFTD4ex8MWTHrcS45Y6tr6Dz5fd1I\nO8WED9Fm9dfk92QW/WpfFjAMYRzdZlEUjLchf+6rNKY4q0vCQBI1S3qsC3PI\n6ucFgGKUGIcdXLV04eds5MW/dzCPmhhFm4HwpmGnyMF6yXGIGVrqNq/7dezx\nRl+Cy7ABNSw8bEwum+9PixVge/MaWp692ONoYGVMRh9rn/pcH0gY3FD0yYfg\nc3920wVQq8tmNU6+x5s9iVI/oNfcv3SGuySKX/EiQAQiCG79oggYMdYdzlDe\n8ky2To4LL4mUcYmDjKSC/pCiOIBcqkaRU4Dgx7ebolhPCHnA7QOD4GZEllwm\nb1FlREghzB+ZOfY1NbTqF+eDvD6cbQ7bb6nwQOu9sCvBjTOiGozlkMMPA4Pt\nBCk5rpSAbm78t556fxjOXybjsVWXp+BUjrQlhRjP0oWqyNGtSN7nxr9jCJoL\nhW15P1/cBo7IrMFut6vK89AVfqKHSxXzdcTvmZfmRuSkCNi3XIOnGEaMg3JJ\nssckUBhP09A6ZGweLphCkwjja8nkKK8s7Dx1CxRyrpU4BniHkgaOxxXwxpWD\nfny7YoLqmrdmzNxgCEU0H+g4cr3jHPt3x1TtipEiiecDe21HqqBzwDzJjUCM\neT3F\r\n=x2Fh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBGt3JIKjWysA3ztWS0h6vMqb6el93TO4WlmQvh8Mp49AiEAlblw8zWNDN86c4iykBPkvsXWO9PjFP7a/XGx7v8pLJo="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.0.0-next.1573588019.a632ac136ceb89829d72790f05fc210703877996_1573588023117_0.09201270908206127"},"_hasShrinkwrap":false},"3.0.0":{"title":"Lazy Require","name":"lazy-require","version":"3.0.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":{"type":"cooperative","url":"https://bevry.me/fund"},"author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.1.2","extract-opts":"^3.3.1","safeps":"8.0.0"},"devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","assert-helpers":"^5.2.1","eslint":"^6.6.0","eslint-config-bevry":"^1.2.1","eslint-config-prettier":"^6.5.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"^3.1.0","prettier":"^1.19.1","projectz":"^1.9.0","rimraf":"3.0.0","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"a632ac136ceb89829d72790f05fc210703877996","_id":"lazy-require@3.0.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-aDgfUK4L8HMpatyO4fDqDU3AtAT5H1uzSx1b+7UisbCOoXLMgfPdiNYxpGpYv//LhMyGlrhbVxYZpbQ8WBhoQA==","shasum":"b6d0bacddde49d4b0806ee60bc83afc278cb9c9f","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.0.0.tgz","fileCount":8,"unpackedSize":33820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdywxyCRA9TVsSAnZWagAA1qIQAIiZh834Uizz0z9dgdtT\nn3RxFdM/6hvb+c6V0UAWM8IsOGnpaFw92sDK0uCSGI2QRYbThYl4an8mREXa\nLPaRHAmuilVTbul5YCl57JFH/lL2Z7mf7/2g6qC7cizDMwZdjxvIEiFMxrXY\nxY4UcvcH4qZVPahoCHNEh6Xg+7GWLYz/7uP63KFBQJSYPflFrU/FSaNOxKka\nPIG1E2OxYBnasVBtz2mq2cus7TtHcPXo8G0dc2yBgcY8NKTpZhXrohmvjo6o\nguyDAITyRUFTDQ1FJkTdpoX1QUxizC4dwMjWWgNRhCl4UaBUG20BzkNPC1WP\nR2+H892ZNSbpT8eqwZRvPIjM0/f6jRQdz+XqhwgWgJFMjxTXht0rsJu2Ab/O\nCgOlcyxepv+TWhzbwD9X7Qy0BBGHGRUyZbdM5YZREcHuLSht32T2aQu4+NCC\n4x09rVZkUrK+jl6ER79Msrf4oVRJHczApJ8iKBCeT4esKjx6i1x4nyzzK7ZF\naagmHAwglSMOvlfU8oztFwh/7E43QAFKuavfT598CxSnIjwRUTgYnjVv0W71\ng62NPiDB/P1YdFGEfZ3ZC09QceepjkEHyGm1T7SlEvMPZ+e48RpvJDRaAX8O\nTN7o2otceFYybFyt0yLRibhoEpt9KO95LH4tKNA+fg6KJVhMW8eDpptil5qw\nvOQM\r\n=W6qk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt6oURAReLth0rR9cVkbiwQdeQwjdZ5BG804sFg56AvQIhAKHEM5LcWz+taxUpqvqul0hsmTUlPCm9gOoWR27ceKxy"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.0.0_1573588081478_0.7252915487065796"},"_hasShrinkwrap":false},"3.1.0-next.1573614361.94a4affe92fd30b40a57c21af337e7f1931fa0d3":{"title":"Lazy Require","name":"lazy-require","version":"3.1.0-next.1573614361.94a4affe92fd30b40a57c21af337e7f1931fa0d3","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12 || 13","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.1.2","extract-opts":"^3.3.1","safeps":"8.1.0"},"devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","assert-helpers":"^5.2.1","eslint":"^6.6.0","eslint-config-bevry":"^1.2.1","eslint-config-prettier":"^6.5.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"^3.2.0","prettier":"^1.19.1","projectz":"^1.9.0","rimraf":"3.0.0","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"94a4affe92fd30b40a57c21af337e7f1931fa0d3","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Require: <code>require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is esnext source code with require for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is esnext compiled for browsers with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n``` javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {/* options */})\nif ( ambi instanceof Error ) {\n\t// Error ....\n\tconsole.log('ambi failed to load because of:', ambi.stack)\n} else {\n\t// Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n```\n\nThe following options are supported:\n\n- `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n- `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://robloach.net\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@3.1.0-next.1573614361.94a4affe92fd30b40a57c21af337e7f1931fa0d3","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-6O2b6//qluyCwaboG1TSNRzMnuas0C8dc5UbWGGspeTHQxzxI00mnDS+X4JIHYSVo2/IBQ3BMz9oTsHm43VHkA==","shasum":"c6d32d39d09cf8f08553dd4555e4699e63b979eb","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.1.0-next.1573614361.94a4affe92fd30b40a57c21af337e7f1931fa0d3.tgz","fileCount":8,"unpackedSize":34037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdy3MbCRA9TVsSAnZWagAAYLgP/3lrX8Ir+eOQBSlTNAOa\nOTmiYq7q3x0wDfx0c2AztXnVR1l9yaPT7s5PHzsYletZyd9mBTJsNQQpo/rz\nzPi/QQJ2odCmHwa4ESXo+2AHGjWkenkmtMXIzQ6C/Y4+xFK60ff09Iv5IcLP\naCNewLzEq+Z6zbzeuryngdfJ1o1DPv1NE05pDQdpOkbBIB7LUfNZ4eMgSePn\neFbKTQVS+N9xRW3XskCtBbpSIJavYwwO8p9rDOBtGpw9SJz5MdJMV8CcwmXK\nvAqMtRX1aFnS+muXQhARwlA/kcxCf02bfvKnor59ql5xmqJPWpGEZMtzs5xU\nbwU5NXvyGi10FbWzDxGK1ocle6NqLHLvzb1chB9yZyGun5TaaPMHT0CqKBF1\ng/4T8S+LHcbgJlpwA1c3b545xsJSQHL5XnKROP8t3uo/PUT99rTaaaJYZ352\nFH0HibC+8WmHzzSQzXvcZRb6JlCp3Y1G27yQI5caPiLd0SdbNOP4WbCl642D\nFb2VwirYHTQOyvXk9mw79bzgU17vdZy0Gq2Elz2MAm+jobQJKVL59e2s1o/6\njKOdIJPomXtb61oTmx5NjWOPBRJp472Ldwm2hAjFbi0fyeRU4ITuTumnG1U4\nC4ecozQ/psXDzOYB5QrQN710r6Q6xlK14dxWecffybjHmjMsP3I2xx7nqrjq\ntjWb\r\n=4fZT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8WBuzn76fz9gl90KAqQMYupxpzE0GxNG5ur9iFC+UdwIhANeCQQOS7zKegBgILhhEc71TGqzbqtvDgMLj7Pwunltg"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.1.0-next.1573614361.94a4affe92fd30b40a57c21af337e7f1931fa0d3_1573614363361_0.9654725164022473"},"_hasShrinkwrap":false},"3.1.0":{"title":"Lazy Require","name":"lazy-require","version":"3.1.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12 || 13","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.1.2","extract-opts":"^3.3.1","safeps":"8.1.0"},"devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","assert-helpers":"^5.2.1","eslint":"^6.6.0","eslint-config-bevry":"^1.2.1","eslint-config-prettier":"^6.5.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"^3.2.0","prettier":"^1.19.1","projectz":"^1.9.0","rimraf":"3.0.0","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"94a4affe92fd30b40a57c21af337e7f1931fa0d3","_id":"lazy-require@3.1.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-7uzq2CTwr338bYSZpFPduTUhua/xFWvYyNiq/fMJ/PW+7O4KFsAb1Vx1oJUPR6e2uylzBEhniXbWDxcjasvgHg==","shasum":"09f75a7f95f395b66ef061dc16febe835d8e2608","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.1.0.tgz","fileCount":8,"unpackedSize":33980,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdy3N5CRA9TVsSAnZWagAAeFwP+gPkIleB06KzNGbEGFz/\nP41nmLQIIgTcHCWLYDNr4w7/thsOePsAf+VuIFT11I34rnAGniqFCmB3+kts\n7TB6b4io8Th3EkrOrY1V5OgJWxhq+sxzs+BEW+bc7q/BxlyTNVUbPmSBkhXf\nINU5JI+UdjsMR8yqZbyP0xA5u8JSDXS3WM9ZUN6j/8Zfqd9EuJs9JXfxaAV3\nQtu/9X3MmvRZdAlSHxoZ+Gkhd1WJxIHW/m8nxR66w2y84+u4P4UIVfbx2UGi\nUU4TI160TIHwnw169NTgn64x/pJ0C04UoVH3MzHxrGCvnbiEE/dXW5IWBkFp\nULdhjrPDRUsl5HGBafHdEh5qhIcOBiGtJFIPkQ4GIU0lyNg4t5Lc+GAZ9ghb\nWJP2EwLHylGvOGST02oQioLiX4TBc5dcn3JYCXGcRRiMVk7tnPRcEEfCnLeU\npgDrOV1Yf1LjdCOYlEdOaAzHMVe6u8FgyUsVJ9AxD0SEWvCeGDpBvNel2Q1o\nUzUHIoieVKp3gvYUt54jte8tQQKMj/jJZlcBha/+gv9Ocn81slfFmQXfE0xY\nput3l+DP3yaFTGcvs7WJ88NCcs4psunhF7p9eIF9ZlW2uGgh61nJWHU8MG/D\nscTBXdG9WP0Je6HlrUQiWOkA4xYDP2pBQbd6//QLqB1zeLZlBtu3xV0ITzZx\nWbIy\r\n=Phzs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRxiJ4WFrUQDS6Q07Z29IpMqZa6hGITX8elsyGvbdJHwIgQNLrDVKsZdJX4MsbrosvoVqNErEgzhvfs3KJzGEbRHE="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.1.0_1573614456952_0.8091800734695835"},"_hasShrinkwrap":false},"3.1.0-next.1573691940.8acf58d4be1a9fa5412ec95cc6d7c75771e9c162":{"title":"Lazy Require","name":"lazy-require","version":"3.1.0-next.1573691940.8acf58d4be1a9fa5412ec95cc6d7c75771e9c162","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12 || 13","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.1.2","extract-opts":"^3.3.1","safeps":"8.1.0"},"devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","assert-helpers":"^5.2.1","eslint":"^6.6.0","eslint-config-bevry":"^1.2.1","eslint-config-prettier":"^6.5.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"^3.2.0","prettier":"^1.19.1","projectz":"^1.9.0","rimraf":"3.0.0","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"8acf58d4be1a9fa5412ec95cc6d7c75771e9c162","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Require: <code>require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is esnext source code with require for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is esnext compiled for browsers with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n``` javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {/* options */})\nif ( ambi instanceof Error ) {\n\t// Error ....\n\tconsole.log('ambi failed to load because of:', ambi.stack)\n} else {\n\t// Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n```\n\nThe following options are supported:\n\n- `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n- `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://robloach.net\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@3.1.0-next.1573691940.8acf58d4be1a9fa5412ec95cc6d7c75771e9c162","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-heW96gHB6G3BKs4ABa/MOoYyIix0/SCn+HlI0kWZScXzT2fB776xEJ8TIxMSZr5FwxM7mZ+FVzYzzlMgRwNp7A==","shasum":"6b8b30ef5ff84104326d3f34efe768d48b2717ee","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.1.0-next.1573691940.8acf58d4be1a9fa5412ec95cc6d7c75771e9c162.tgz","fileCount":8,"unpackedSize":34037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzKImCRA9TVsSAnZWagAAltUP/jjronILp1WbuE1gxb7D\ngfiEeeDl5Ga5eEXtpkuRjAih6YpCofRZvFqNroTMCoi4sUVwj/KA3IYgBhQd\nQmNen4VNO28DbRzXKPp9nbF4HX2kxRRae0P9bE6xiAV2pP0mDiepxP2og/4V\nYDdGkknWCCn2tJCBAET25Abe7bnqJ/Z7pqJ7mQ1oz75CJMvPBhEzFtuseDtC\nKxpKXubI1WmcYO0pTfq0nk4Y6RYVuGHI8O9LZAxlNubthenoovz5Dq5KOVR2\nFHDmXAQ563657BxExzVtaQKcxPIKmgZUJVjvnX64+BCL5mC4qMFAlI8cwcco\ngEdztxYgVpcaIxdu0xhqw5ltzJY9aS72MFP+UD60+qV/h0IfJ7hhHaWYlWTu\n96eAoeMa+bZY0YYvvm/Xn89FC4OVXH+hliZK7WSojmc9MUCXqb3g8nKhtiuV\n5oTAlzfmDm8ZCgU64SQEW2M0isZjIUKSEuFlW0GEjwxKtf9e5lmcwL+Dz4XM\nFPUwH3kOvhekHOXcL6FSuupeYQqsRTrrgmSIKpRGWK2uwVcjH5tYjK1ZH236\ngUBoQFsw6LACoaKiQewcd05RZsesBaVzsmKoY7kxY9LQ115KOuYs/L6iLBy8\nQXDEYHPFIjmcKCMYX7kP5kPgtnONnWLNcYaHYmxbcaxkjQjk0bFY8LoHVrzT\n+TnT\r\n=AUvN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJfy1BebbkxHh7B8gBLQr6hP4H5zZaY04nwKtloWmQ3gIgG0yMKvTSLanp1K+rZ+46eVVPXlUu858moYaJv9NRnoU="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.1.0-next.1573691940.8acf58d4be1a9fa5412ec95cc6d7c75771e9c162_1573691941684_0.11791416983804703"},"_hasShrinkwrap":false},"3.2.0-next.1574054193.00fa7c0233200e3fa9d6c4fbcd5e63a7fcab74bd":{"title":"Lazy Require","name":"lazy-require","version":"3.2.0-next.1574054193.00fa7c0233200e3fa9d6c4fbcd5e63a7fcab74bd","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.2.0","extract-opts":"^4.0.0","safeps":"8.1.0"},"devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","assert-helpers":"5.4.0","eslint":"^6.6.0","eslint-config-bevry":"^1.3.0","eslint-config-prettier":"^6.6.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"4.0.0","prettier":"^1.19.1","projectz":"^1.10.0","rimraf":"3.0.0","valid-directory":"^1.1.1"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"00fa7c0233200e3fa9d6c4fbcd5e63a7fcab74bd","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Require: <code>require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is esnext source code with require for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is esnext compiled for browsers with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n``` javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {/* options */})\nif ( ambi instanceof Error ) {\n\t// Error ....\n\tconsole.log('ambi failed to load because of:', ambi.stack)\n} else {\n\t// Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n```\n\nThe following options are supported:\n\n- `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n- `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://robloach.net\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@3.2.0-next.1574054193.00fa7c0233200e3fa9d6c4fbcd5e63a7fcab74bd","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-Y5F3znhQgmz6THHK+Y/4EzhQmA9KtKn/ZvPqJN7duJEULsAMu7oUZ5D1V7YSvbobApqmgvUMKyDJeAc1okb//Q==","shasum":"194b6688ff492142f1cd2df731d727218475c80c","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.2.0-next.1574054193.00fa7c0233200e3fa9d6c4fbcd5e63a7fcab74bd.tgz","fileCount":8,"unpackedSize":34605,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0ikzCRA9TVsSAnZWagAA4DEP/0MOZZekkG0ct+QrBwrf\noQb6sTcm2yOF7Jmg3e2oLGdMEA80NdbQmacSPl2C3edEOMNmf8+qLNXxCGPt\nkgtE9of905x7acIBx/+jDmFBfpy9WDgtSGly7NYUgyHiBzFeKIZwewyffoL9\nUpQeXf0qV3GniwgUCWEjDAco3iSoKAp0i6qFrE9Yd7O1R/3DZrhAEJcNf8KO\nb2nh6adHXMRxVA/U53/s0pT0JjEq7oRs2vOXK18OW6l4F/goC+qmX9EvKS4h\nxruYgDHuZ+5EcaZOeR2gM7R0Au2eTOLCRyiiaBu8szyWY3qnHnzf0YdMjFd3\njnngbtzJgs67byvCEfJw7JvdlfQ+iHPMUungrQSVCL5o1EgMPpov34+mttmv\nnH4mKbbbVYk3WWhmxYq+L9Ja8qEyAlA63+1NrhWvgSdi+5DLzMtKndiqzNCP\nniGXWiLi/iG42Pz+G9oH36QiOYB00t9eNEF94SzCq6XboEBlDujskwhzFVnL\nZ0BFvwKdgAw980d0fqvaMcjDecCTThNL1olKJqKfWaOtwD9gSyuzpc84iJQ/\nGGSaGjPZc/6DHjoGHyI3uOu+GAqjghYxG+hyxZdYggIrIpw/1mMfoAGLGZ3t\n7bW9QPn1MDqfeca/p/g3KSasftKnCQ+/VQdTv3o7C2ApP6Hj+BhOL75MZ87H\naKjQ\r\n=8HNe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgEiDEtZ4KaMI/eX0EczWb7UUwAblg7mwb3Tx4/I+QIQIgPlaUm16ab6OMVom0E1VxahNhoYiKVjhvRN2mEUQ36TA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.2.0-next.1574054193.00fa7c0233200e3fa9d6c4fbcd5e63a7fcab74bd_1574054194861_0.8009420234221283"},"_hasShrinkwrap":false},"3.2.0":{"title":"Lazy Require","name":"lazy-require","version":"3.2.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.2.0","extract-opts":"^4.0.0","safeps":"8.1.0"},"devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","assert-helpers":"5.4.0","eslint":"^6.6.0","eslint-config-bevry":"^1.3.0","eslint-config-prettier":"^6.6.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"4.0.0","prettier":"^1.19.1","projectz":"^1.10.0","rimraf":"3.0.0","valid-directory":"^1.1.1"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"00fa7c0233200e3fa9d6c4fbcd5e63a7fcab74bd","_id":"lazy-require@3.2.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-4TntmDt4vF24k1g/n/qVwH8/X/VbmaPQNO/tRIQ3eohdJwSsrrfzhnfjQRd2QHJXbaREwbSXL/4nRJtz4rmd1Q==","shasum":"098cb0327cdebecd788a527ab2eef7e75de202cd","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.2.0.tgz","fileCount":8,"unpackedSize":34548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0ileCRA9TVsSAnZWagAA4UIP+wT1P3ZsK0ttTWgQzdka\nE9DYThFzsUEjg3SQTiFABezZ8nY3aiWo4x65bNwy8zossqqo2YbI8G5Yet4W\nHJ2xad85eAyfVQif9PDxJL7SuC3Id+30T4utN9LERZEoDJThtB2X+5ZT1qQn\nGXo0hRAAhJBbWZCQW3D2G5dvqoMt49AOsRi3pc8kg9DjIhPyw10PXIwVVA0c\ngYbwWs/hys7Raqu3ReCK5NIH6m3wrQ/VKkjfikI1+0dbsHJeWE0DdmV6mDOb\n0jWkBYJv0GxHZUbPs2BMKVxARoUxLJHzu9MtFuEwJLz2PnkWtveVPzKLBWLp\nAOpXhtLL6J3abdtfLrGk1u5fcM9DpmoAnybz9oX909wTq9OMf8287pRHPWSN\n7m358CmKphFrM/UUGK9gB0muwo56rlw9c6iEYif1mUnLRKmGSmw+apOac+6j\n/0151Xjkw0j+TmMqWJ4AlhF4GKUIcuV+QYjEe+n4MZGnrY10wQECZO8xN9QZ\nj7oOxQGbABnBe3Ajq2cYxGpSVB1OVh6XmlD+GksPH3W3v039IAH2WY7ypF9T\nXIrxyKQxz1VbGsZJnl37ezOFl68FGuLx86WqllHuKXBrgHPa8Wu2FRE/FZMW\n+NfYH33p0fQns98+Bxa3X7tXeFfhc+faIs5Je/yXQFf5GV+8sTATQJZyD9v8\nhrb6\r\n=07KD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICOLhZic1877CW+PktDbGHxIkOmcxa8AafzYv8BYwrMIAiASK2Ps+ZkznPq4QfrGSMcnfkPXRCjTvn8zc42eghbh7A=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.2.0_1574054238236_0.47888992709104317"},"_hasShrinkwrap":false},"3.2.0-next.1574656321.ee726e41b8b526881855646e302edac39d54d728":{"title":"Lazy Require","name":"lazy-require","version":"3.2.0-next.1574656321.ee726e41b8b526881855646e302edac39d54d728","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.2.0","extract-opts":"^4.0.0","safeps":"8.1.0"},"devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","assert-helpers":"5.4.0","eslint":"^6.6.0","eslint-config-bevry":"^1.3.0","eslint-config-prettier":"^6.6.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"4.1.0","prettier":"^1.19.1","projectz":"^1.10.0","rimraf":"3.0.0","valid-directory":"^1.1.1"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"ee726e41b8b526881855646e302edac39d54d728","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Require: <code>require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is esnext source code with require for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is esnext compiled for browsers with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n``` javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {/* options */})\nif ( ambi instanceof Error ) {\n\t// Error ....\n\tconsole.log('ambi failed to load because of:', ambi.stack)\n} else {\n\t// Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n```\n\nThe following options are supported:\n\n- `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n- `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://robloach.net\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@3.2.0-next.1574656321.ee726e41b8b526881855646e302edac39d54d728","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-BtK3MNzFZ+bzvHhqj3XO8QaAFN8Js1xrlU2zP+J9yH3GOCHdxYy9yY71YrnXyy5Fmp4/E/UJ+ddQAAd39/r92w==","shasum":"748d371aad37e6fa5c108f3ff474acdeafa4dc8a","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.2.0-next.1574656321.ee726e41b8b526881855646e302edac39d54d728.tgz","fileCount":8,"unpackedSize":34605,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd21lDCRA9TVsSAnZWagAAwLkQAIVv+EEcp5dUARKS2cQb\nKxyH/g0ys/agQz2NXZDuvwkTUozJV/Jcp4fBWDHRfcrbb4YnU+yGlIR1nAtV\nS9ZS5pDtDBCiiO7aN6opTJClzcfzxZVF911AMHLnOE/wbDXz4NKD1MIg0vkJ\nvFcvg8VIEbD6PAE2vKM9QYg3Co6/EFy9Zk92BQ4gCjc2acoL6eDW/S52tOwC\nKE+xJP35IGD/vwwH8Lhll+ecCGiMUew2dMa4v7NPNR8DTm2vv1trwH9hP8pM\nbh5l3Gu17Zxu1yAG8rrwIaCvqjTfCBlFyzrBHzW4yDtPQAdB59blGkXmgUsF\n4gJBRYMuhCBz1BQ+me4Yz3MjfAl54qMzgzTf8g6IuYdUUUbl0QWix4FJlWVt\nH7Nu9z2dhKNOvDuE3JpOpgBcWw4ePFtAsUc5JNsJfM5M/0tN2KvTE5xj2Vgz\nzDTF/r+Q/UgtioWeMmEi9YxDfYZiC+HU/XZ842ql0p6CDzk75KiEnxEt37n9\nY/wBO6u5VEpXhjtldzJtEEsWPQa1jTQhx120Zc4t7voqMtkX58kQwwrFMMGJ\noF2Q1Kb6klFJNstdG3EJumyOIcLKP8Y2i+ftuTr+u9bYQRQV9EuTlVujToq/\nRtrrDGeIHH9qfbASx0O4tfBepCeCNG0WqEOJ9wzayqTbr8UWBoPtIcoP0XlS\n6tWD\r\n=1uyu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpBDomqJ1PZ6yRf3LTC64ZVZYBck1TueG3UzFe08pS/AiBIl1DbqlCzOsVFRk65lskKRhYZ63BdPT3e74/GcInL0g=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.2.0-next.1574656321.ee726e41b8b526881855646e302edac39d54d728_1574656323081_0.5845744894379568"},"_hasShrinkwrap":false},"3.3.0-next.1575151771.b20d5ba1168d1b423ca3ffa3642aea21883ec836":{"title":"Lazy Require","name":"lazy-require","version":"3.3.0-next.1575151771.b20d5ba1168d1b423ca3ffa3642aea21883ec836","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.5.0","extract-opts":"^4.1.0","safeps":"^9.0.0"},"devDependencies":{"@babel/cli":"^7.7.4","@babel/core":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/preset-env":"^7.7.4","assert-helpers":"^5.6.0","eslint":"^6.7.2","eslint-config-bevry":"^2.1.0","eslint-config-prettier":"^6.7.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.2.0","prettier":"^1.19.1","projectz":"^1.12.0","rimraf":"^3.0.0","valid-directory":"^1.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"b20d5ba1168d1b423ca3ffa3642aea21883ec836","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Require: <code>require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is esnext source code with require for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is esnext compiled for browsers with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n``` javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {/* options */})\nif ( ambi instanceof Error ) {\n\t// Error ....\n\tconsole.log('ambi failed to load because of:', ambi.stack)\n} else {\n\t// Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n```\n\nThe following options are supported:\n\n- `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n- `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://robloach.net\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@3.3.0-next.1575151771.b20d5ba1168d1b423ca3ffa3642aea21883ec836","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-GmXw1tsSILxV+BTIM4IuwlB6O0CqKQ6a1DzjSsgT3MJa0m8Sa93VKr1g1K1rya9sQcvU5xtjzfAks5YDJWoE7Q==","shasum":"ae802b6efbf26780a2a5552fb58d28e0554c028b","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.3.0-next.1575151771.b20d5ba1168d1b423ca3ffa3642aea21883ec836.tgz","fileCount":8,"unpackedSize":34811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4uicCRA9TVsSAnZWagAALs4P/Aj6J4u6tU6JLDwBNVnC\nlBWaIMBrXFu7s9dF8rkOr3ViLoU4W31k+Xldu6IG5bhv1NxeOJk2TtWU92lJ\nDCTRMjJCbi8JAsXvb9DxdyCkYwqhqL+P7Xz190CbWRYYFkhEueZm8wNGdWNg\nkdkjpD1Vq5H+dlnax2VQlAJLgwO4vsszIj35/hFwJquqOUIdMF8bS5juTpJV\nSNAVLV9D6PeYsAocGzyvcI3tfO0gWqEmdNt4ydhWJSw2pQp+XPl3fkXAG4Sl\nOMUlBwhJUrOBR6HZmgMmTqfa1w/xkM7HF7LHt8Z+tMdWK37Z2eqMSwVICwik\nEun9hrJOCKcef0Mlo3S4XoONjqi4Ag7uJY54NDFMmwoXOkdmDPrC3z7tab8J\nTcWb0WPL/Ony71W+it8nPmT5mCgRHRY8UP2miqOuj+36aa+CjgjRLxPa4IdT\nqugC9FQ4KUtr8YxKV9lFqkYFOuW+QBfVudVt8Hl9Lx7xMXztJReaSXBn+AAK\no+yVUsPTJrPxHbE+1mJD7AN8SJEZqAM+m1Nuv1HSsmq3RkxER2Cwq3GQ94w9\nc+1qHbaAccLgmr9j4BUrpnIl7/2Bva1ExXOmdO29cOyIvjYJFg2usHgb2kPb\nRC6qmZeX0LrMUBwh/vifNoDbD1oBSJyDUljG0VUc62XFD64FKTG9Nq2/05UI\n18jJ\r\n=yc9p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG9H2qRWdKnHhjLm7k1O0Qx5qCkta/Jnvw022t/bQx2YAiAaG1W+a1ZhtUg695YpyYf4OqZhtKnvIQbraJiHlTQe/Q=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.3.0-next.1575151771.b20d5ba1168d1b423ca3ffa3642aea21883ec836_1575151772316_0.47501911173987144"},"_hasShrinkwrap":false},"3.3.0":{"title":"Lazy Require","name":"lazy-require","version":"3.3.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.5.0","extract-opts":"^4.1.0","safeps":"^9.0.0"},"devDependencies":{"@babel/cli":"^7.7.4","@babel/core":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/preset-env":"^7.7.4","assert-helpers":"^5.6.0","eslint":"^6.7.2","eslint-config-bevry":"^2.1.0","eslint-config-prettier":"^6.7.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.2.0","prettier":"^1.19.1","projectz":"^1.12.0","rimraf":"^3.0.0","valid-directory":"^1.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"b20d5ba1168d1b423ca3ffa3642aea21883ec836","_id":"lazy-require@3.3.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-4UCAo4O9+5G04CY89iNStF3/qPu1uU7b24Rs5LfsAWpnCYmq1k2qy8FntTR318WsTlcX/fvN7swNPlCFET4M4A==","shasum":"02a42c736c0b71e156ed3ae5150259d214988be3","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.3.0.tgz","fileCount":8,"unpackedSize":34754,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4uj6CRA9TVsSAnZWagAAY6kP/3ogTzd+ZoS3WiHIQ1HX\nYdKVv1NhD/fPvyg1jcAl2O+tJkAMY2VvmWJkLdbsUg5+uJiOGzIcCQqolyB1\n8UrZNUBP6kayfmy7+judRrsrMUKuw1tzm4jNTQSwsN6xIFnmk4Rv1odPiQWe\nJjJwLdR+/kbxy0yqYXQwiHz2/o2d/YWokHM5KC+nFvadIP45hKJpr0cez2TK\nPydrTKO8tgxRxJSqv5yuuEvzm56adKEHFjB46ddeYmaBk/C1jBQlZXEH4jRx\nLa1PFNdyHvZyGyK4L2cjVbtp1MzIRH6DN1a9+gmiDpT9GkBTXJpz4bBRdvry\nkKyXLZOEi+56XUGFjJ80SoBEfANBxipl9J2UKjwUdY6+8hcop2psnoXTbxkq\nkMfBn/FcDVftvbkuaGZawc4RGq/up4/Xuf+LisINQBWi2wBtvQ2X7kymiZWD\n5OlW/USmYX5Wmg/XT5yEhll+lLZWTefEb6xZ32wEO6LQSogE0FchUJZRrbGe\nG/2XMipOBjfFncwJJh8HCJUcgh+Q6lovumQZ2U6xi5YGkFzP6mc0EeljNIAl\nI2KcYzC0hXi2Ug23tnzUYSH+v4oykzyPsm2ZzoA3ZXgB8uUA70u8imADz8Uz\nsrVMlcsP9OJVYaZCE4RCwcZ3hw6qE4dwW+BCQ75n8tGHdKsFDebezIl8+z+n\nOYaQ\r\n=Zdl+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCm5aWDxfD/hbfr0E7YgNW/KJ+2NZCg84GQuPaDmanmNQIhANNUcJSPeVrn2h8Q8xcchPjVmR3qiRZ2rumCU46Fs/dV"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.3.0_1575151865800_0.8202659044546006"},"_hasShrinkwrap":false},"3.4.0-next.1575216053.5deb173de798296b474369bcd6323b13990635c9":{"title":"Lazy Require","name":"lazy-require","version":"3.4.0-next.1575216053.5deb173de798296b474369bcd6323b13990635c9","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.6.0","extract-opts":"^4.2.0","safeps":"^9.1.0"},"devDependencies":{"@babel/cli":"^7.7.4","@babel/core":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/preset-env":"^7.7.4","assert-helpers":"^5.7.0","eslint":"^6.7.2","eslint-config-bevry":"^2.2.0","eslint-config-prettier":"^6.7.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.2.0","prettier":"^1.19.1","projectz":"^1.13.0","rimraf":"^3.0.0","valid-directory":"^1.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"5deb173de798296b474369bcd6323b13990635c9","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Require: <code>require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is esnext source code with require for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is esnext compiled for browsers with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n``` javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {/* options */})\nif ( ambi instanceof Error ) {\n\t// Error ....\n\tconsole.log('ambi failed to load because of:', ambi.stack)\n} else {\n\t// Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n```\n\nThe following options are supported:\n\n- `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n- `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://robloach.net\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@3.4.0-next.1575216053.5deb173de798296b474369bcd6323b13990635c9","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-e5oMOTxHr1Jl/RcJ/J683FagC4hDJY8XL8Cj1IGoOv31f1/zhZ4hmwy8kQQJWF9a7lU+bBdXzsoKLHEeBXb0YA==","shasum":"7a3e2b0e2ca474178842a863204c7d1ae87b1440","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.4.0-next.1575216053.5deb173de798296b474369bcd6323b13990635c9.tgz","fileCount":8,"unpackedSize":35016,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4+O2CRA9TVsSAnZWagAAb+kP/3ScLFFjC8dx6Z2Bun9v\nhnyDuETNyd4H+hR6JNsdZovp05hswrrShYiUHMDWQ44G3JsjVPqcvntybrMX\n09lOQRRKXWP00WWDtdoSDUxoJ+pLUi5uoe5DXzw9mQeHGctT31yTlf7EynvR\nJJfQu97Fj8XFkJXkEVprjLptP9UmNI4hdC0rHQrSdrbqBvKd2TrQnzzzMUAS\nk2iOKID1hy1ts6X3afCPnCEHZcYw4+xU3k6aMbO/3vFIuPMPC7/330Z/iwMx\nnPva58jmPYNTseSdf/ndY8JT3MpsVR/dtKYhrp7TgKPgb36rIBm5XDzaph2M\nTXeSyDNmUi8lfX5JHNttuUezWipukdo48wxwhkosSpr+FDUz952kFwEEAC6v\nrj8xeUo5S+2dtCqUMNvjopDC4G9zRl+PfcFbrhdtdJuJWH88Hu0fHYrIHzt8\nTBMUHd7/jbLKaEcS1xt0PyC9C4R+4qK+FEQAn5beQxePZ1F1w+wu1KSstTUP\n3gsoXxd/lf+rf9SpsOxYmdemSh6TMLDSjGw/2Os9YKgw5mk8cAk9yr6kuys4\nu00cPUUIcJSHzt+av5A2mgBPdRmto2Xsi1tdf/EY3+hfR0Cnc1TcWKvzGG1L\nv6nz5D/NrSv1Ohhn2rUtTxEbCH3cV5uOSal1OkqnnUrAzbBGIUCufQZkZMTq\n8vhL\r\n=64ac\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFIFWt6w4XBg0885whnibAD9mzhtE7dP3FHxIT+VJdCuAiEAu+pb2JvSxcbBaOB/GtPu8Zl7LnlQO7XW3d2FrzM94C0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.4.0-next.1575216053.5deb173de798296b474369bcd6323b13990635c9_1575216054471_0.8720030189259129"},"_hasShrinkwrap":false},"3.4.0":{"title":"Lazy Require","name":"lazy-require","version":"3.4.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.6.0","extract-opts":"^4.2.0","safeps":"^9.1.0"},"devDependencies":{"@babel/cli":"^7.7.4","@babel/core":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/preset-env":"^7.7.4","assert-helpers":"^5.7.0","eslint":"^6.7.2","eslint-config-bevry":"^2.2.0","eslint-config-prettier":"^6.7.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.2.0","prettier":"^1.19.1","projectz":"^1.13.0","rimraf":"^3.0.0","valid-directory":"^1.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"5deb173de798296b474369bcd6323b13990635c9","_id":"lazy-require@3.4.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-vrMwMbKjWtdJmfDZeKxTvrKGHBVw5LvbRSrWWpKulveHkm7NpF4VzVWxxHwgvIwYdAyisQVLQaziZINoI2qh6g==","shasum":"64bab5d3795ad0d091faea751da8a70b2873b861","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.4.0.tgz","fileCount":8,"unpackedSize":34959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4+QECRA9TVsSAnZWagAAdx4QAKOlSya6jVfURrOa1Rcn\nom0e4S/r/KfWuOAvSOH8FKn0JvSBb5OkNLwM0oQ5I5Su77sl/pgirl3DdMIv\n/YqdRhClHVOL9fQiNqWEO66I+GkAJ4vQ/an7qKTYUIwTI4CyC/fpcd2pi7OY\nh3ptNvAFFUBEz1YDf/5U5l0LtITw+bT+zqofKqh2wXHskFwVnbKRv6Bufgr3\nmT/OkAnM7V3e6yXnkRdJtFXL7aUrCWjDu4ufYKfB1XyPzZYpjj5Jlhsb75Kq\nC3FIvZA69s3sSyXoGihV2oWEGd7KQhl5gMcc6m4uzMs7txoMQ9nCC+pyfHJP\nFk5OLPzLCiPBz/bLF1bEDs223K4aPbUwGjtA72Ho+LY9tl5TNbFnlfAkoQy2\nsnELC4IaFFNoymVK7oR3FG5qKBtIeYlY1lQfYGpRz0XwkhVbH04CB/PITWSQ\nqXshVXJU8Dl9jnFNWQo1Fg5/0S95csfq4AvKqJD9VZVvxM45tExSCO/vOz32\n6NerLCq0pBADlRtTtxyyRmCULmvKksXZLUqrbyN4AvpthGbbUSLNSaZWPmyP\n7auZjfxKYiSmwBs3odU8RdEcpIxCOYlwx+rO9tUWScMGNrpwEn9rCDWNsZc8\n/m5FYDT2yt/7XxxaGcxKEUTy8cgXnUtfOgOGe11P7bKYne894S8ooQetME8R\nqC0o\r\n=FwZF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAx7+kCfcRHRsFLS6dWq+jF2BKzvdrpXMcZV7dveu8kQAiEAgdUPJJrorzmdRbTrWPU69rLj5A4eED32cz6A3CX1sSA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.4.0_1575216132232_0.6784030187975387"},"_hasShrinkwrap":false},"3.5.0-next.1575886141.07ef57283b28b0587ea6284fddad66a85f4463a7":{"title":"Lazy Require","name":"lazy-require","version":"3.5.0-next.1575886141.07ef57283b28b0587ea6284fddad66a85f4463a7","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.7.0","extract-opts":"^4.3.0","safeps":"^9.2.0"},"devDependencies":{"@babel/cli":"^7.7.5","@babel/core":"^7.7.5","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/preset-env":"^7.7.6","assert-helpers":"^5.8.0","eslint":"^6.7.2","eslint-config-bevry":"^2.3.0","eslint-config-prettier":"^6.7.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.4.0","prettier":"^1.19.1","projectz":"^1.15.0","rimraf":"^3.0.0","valid-directory":"^1.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"07ef57283b28b0587ea6284fddad66a85f4463a7","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Require: <code>require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is esnext source code with require for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is esnext compiled for browsers with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n``` javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {/* options */})\nif ( ambi instanceof Error ) {\n\t// Error ....\n\tconsole.log('ambi failed to load because of:', ambi.stack)\n} else {\n\t// Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n```\n\nThe following options are supported:\n\n- `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n- `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://robloach.net\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@3.5.0-next.1575886141.07ef57283b28b0587ea6284fddad66a85f4463a7","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-LkVC8+V1IaRGRYcswDDB1E4pTppRHolAB4skzuGf1FeIagnEqEMEPzSH1J9iJclaoi1XQGjDoUK7Jgbvb/5juw==","shasum":"1d280f805216cb8b231038ebddbc9a93066fb82a","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.5.0-next.1575886141.07ef57283b28b0587ea6284fddad66a85f4463a7.tgz","fileCount":8,"unpackedSize":35853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7h0/CRA9TVsSAnZWagAAgJoQAJFxU03LkPgZJvypWaq9\nZC5g8ZKhQybSVQQbYLR432fW2HYh05SVfxVJZtlaepyOqtTKhoy55ipd6nOU\nM0lY4fut0CtbkQTzIrc1rFNkTxUW/sltFp9r5BbRTKeqz5L1d8Y7JkPFuKyo\n4yLOFmh3EivWZibgTg2LIgb2Q2u89p/C0Nw0c6sTlGNwOZcITsBybkzd9dkb\n4FcZV8bLTi1XWhlXjLkS6OKgHOBo67AhxsmRueqy0rJrLVusgLGxmIm6T2UU\n4cwRSVaQKVW5ee58f1qhMt0vvEOIhdCaVqTYkgugW4S1zjVYAmtzxKqrU2lC\n5IUgvP7gV/PxdX/hiTdQoVkhVHq+2Gr/gcRSRlepcyk0MA2H2OPZasjWFUdW\n0xod3qoPJrvjfHhJyXnekzR8buu7fb0r+MUB6T4rBVsETZQ8D1TshuQX62oS\np5tw9i9EL6/+NNZnFsKfIGDg4R4FOI01zB1kP1eXLsU4Loxh/TogtmlW0UWF\npMBuU1AEwBk1uNHgCTjLPPZJhDaPpsFJtMClmnBu9P6RdQ1svIhIC9y4dxJk\nhMhcpNnfj7dmfMt4ygKremKOCVASZkZ6kqNBeJNDDKk45EzGDtixfQOtqPZC\n9wbqMlM6jRDitgGYahTvhx+qW1nMLcn/2ANngqAUnQf1UiTbF6FxGLaHCx+A\n7lFE\r\n=ZlO9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFS1eGfeFhFu7tvn/cliIR3LydCVI0o5/59tgGwZTS3ZAiEA7ynUPlqoHgCpFMzv+ota5UC7SWLV0BfWLDQhl1BO6CE="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.5.0-next.1575886141.07ef57283b28b0587ea6284fddad66a85f4463a7_1575886142686_0.803285756570205"},"_hasShrinkwrap":false},"3.5.0":{"title":"Lazy Require","name":"lazy-require","version":"3.5.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.7.0","extract-opts":"^4.3.0","safeps":"^9.2.0"},"devDependencies":{"@babel/cli":"^7.7.5","@babel/core":"^7.7.5","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/preset-env":"^7.7.6","assert-helpers":"^5.8.0","eslint":"^6.7.2","eslint-config-bevry":"^2.3.0","eslint-config-prettier":"^6.7.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.4.0","prettier":"^1.19.1","projectz":"^1.15.0","rimraf":"^3.0.0","valid-directory":"^1.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"07ef57283b28b0587ea6284fddad66a85f4463a7","_id":"lazy-require@3.5.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-F8jP1HWVCaQ4/zZS5wa2v9zxSdc1+5Tg0wHjXmxUhY80vXgeFhyzbrmqp+89Un8wp57ixeu0o1cTDhB7YttEgw==","shasum":"b5605f098a1fe7243e8142c1c3085f30f6031466","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.5.0.tgz","fileCount":8,"unpackedSize":35796,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7h2KCRA9TVsSAnZWagAAyT0QAJkK2kyWJP49Pt54fix1\nf63OtrjWzc+1p3WHV+7H3ucJjvPO2MG6qMnHagJhKO9uIedLstNcyyD0brCX\nRhxFauRK6HW/FtGG4OVbiCOZe+ltmOVnoC+/EBsSlkuzU0gWhm2usHckcEF3\nOGMbGM1nrmnUhFesSnzbGL23wRxxU6CuDS1oqC5WZBC0W8EOxy5x8Toz9u4A\nOcOzFYxsgWLr2hmxrgRilEacqzoGPv9Qd2Q/7QM6Lw977ofbrkoqd+bRPKv1\nC6ae4SSGT7QtRfi9lG+VO2xfg4b3C+icTapdlQTH7NDu+TGj4kXnUZOzgQhs\nWYagv2tzBEkZlf6MxBNboXS5xK73TkZiqaFQbfM9FLcIgKDdu6/VPBgBigww\n5mXNhnnNqWQ6eKot239BTBUqSZQ7srXnXkMG6h5Yg503UYf6ZyCRhwe0FJkn\n93D/3n2+hul3IBbqWZVOExKI6gOpBBguH6Olpr59F9wtruQigDw8soSbaAlg\njJbSxDC4a3QjaxN7YA+Me2O6R3by/SphmMJtoJLiAvrXkqAiavhftbqIoQj7\nzpN5ihT12LYOc6nQe0+qWqfRR1T0652ZTaKa9PeU8SZ2nKMPRNPN+1kEBgaR\nes7Kurt+oAWL+ut6fLx49kEdhVu3+ME5XEEYRMgq/aq256Lg9/KsdQNGuPi2\nWDAT\r\n=aGy8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9si/A0xkPXCAEbGmZViYbHlUkSm21wFkP1zTExges/AIgETJql19eSWFzGCkIulOhMRsjMxZjSlJ2c9tPiyCqCQg="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.5.0_1575886217888_0.3426900640536481"},"_hasShrinkwrap":false},"3.5.0-next.1584138036.34a804f02c011d3da6ed0685b2602085c9b49b4a":{"title":"Lazy Require","name":"lazy-require","version":"3.5.0-next.1584138036.34a804f02c011d3da6ed0685b2602085c9b49b4a","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["require","lazy","optionalDependencies","optDependencies","dependencies","deps"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"http://robloach.net"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12","browsers":false}},{"description":"esnext compiled for browsers with require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^1.7.0","extract-opts":"^4.3.0","safeps":"^9.2.0"},"devDependencies":{"@babel/cli":"^7.7.5","@babel/core":"^7.7.5","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/preset-env":"^7.7.6","assert-helpers":"^5.8.0","eslint":"^6.7.2","eslint-config-bevry":"^2.3.0","eslint-config-prettier":"^6.7.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.4.0","prettier":"^1.19.1","projectz":"^1.15.0","rimraf":"^3.0.0","valid-directory":"^1.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"34a804f02c011d3da6ed0685b2602085c9b49b4a","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Require: <code>require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is esnext source code with require for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is esnext compiled for browsers with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n``` javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {/* options */})\nif ( ambi instanceof Error ) {\n\t// Error ....\n\tconsole.log('ambi failed to load because of:', ambi.stack)\n} else {\n\t// Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto('ambi', {/* options */}, function(err, ambi){\n\t// Error ...\n\tif (err)  return console.log('ambi failed to load because of:', err.stack)\n\n\t// Success ...\n})\n```\n\nThe following options are supported:\n\n- `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n- `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://robloach.net\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@3.5.0-next.1584138036.34a804f02c011d3da6ed0685b2602085c9b49b4a","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-A6eK1lBAijKThT9jRfytvDMoK0mmFfjR/TcQSnluMVLWWx5/yVBk4UW3gmsGEHwWVjabpIq1BhZ5wq1BJEr7iw==","shasum":"ff13d7e9fbc6a2778b13ffc40721fae23dfb6e63","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-3.5.0-next.1584138036.34a804f02c011d3da6ed0685b2602085c9b49b4a.tgz","fileCount":8,"unpackedSize":35853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJebAc2CRA9TVsSAnZWagAAH10P/iunV68z6pzXzRmmif2f\nfsiMTB/3NhrbohSaNQs8XeK2RR36Dvo9TZ6yR00JE2Fb2BhxjN1eHh0VtY1C\nbYiVBjggMtwZ0lhgxY9YJHvFmcjBeANwHxA64sCq/jKlBqgB01I2Zg6d1Ohq\ndQRGhTQCPjprchXjgMSTLiMQ7q2RFQzMYZhJ8+FbtBUm8V2mnfKJ8/I6o3Ag\n2Y4XitlfYBXwZrkC7nroVUSq17eqe16o+CnV63WM448KWQCrj0y7su0NiKKc\nQtZ8Ojw1A+c6HCraq0sLQDDDaTxmf03sGcwbCu49bRFZjn55s2FDM28HHBf7\n2m1pugDp6p1ubpzF9dqedMGDsA3V4v003hc/yqHNaIBNiD3MylHP5mL8PZaD\nVdv2vXocgb1QPKVRzoqGWEUcgSffi2UHRo1U4iQofloZHEtn75sTOBAnzqu3\nteelMvXbXqgMGr0RUcmk1OQ/M8gL1O0MYW2+ktJoeiWpjKHQSppXQpVTmJYL\ntpJbEUeSFt+3H6pl1xSjdzDA2GOCHALft7l+iME3HlG0+nRFycq1csHTPWmW\n0zGR2HZYNapI8lPkVKxWAcILHV8dl0fX7teeF7atnGid7OH3ghyhJ2WtPd7y\n7MH1tnwHXNtp+QjUDo0FYnkBk5C80pOU1peg4GUQiMpv42LPUN7dO1GmholO\n+oB0\r\n=S6Ck\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCA2WkHhG1jXmd1zU5svOEtVvAnHWaubkCXq/xoE2zy9AIgYPXcf1vsnj0UCKBzFpcg2WUDP6dT1WdwVr6Og52R1c0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_3.5.0-next.1584138036.34a804f02c011d3da6ed0685b2602085c9b49b4a_1584138038019_0.4200262808738269"},"_hasShrinkwrap":false},"4.0.0-next.1589158074.b755edf0a64ce40929138266193f5da46b920bfe":{"title":"Lazy Require","name":"lazy-require","version":"4.0.0-next.1589158074.b755edf0a64ce40929138266193f5da46b920bfe","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","dependencies":{"editions":"^2.3.0","errlop":"^2.2.0","extract-opts":"^4.3.0","safeps":"^9.3.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.6","@babel/plugin-proposal-object-rest-spread":"^7.9.6","@babel/preset-env":"^7.9.6","@bevry/update-contributors":"^1.1.0","assert-helpers":"^6.2.0","eslint":"^7.0.0","eslint-config-bevry":"^3.4.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.3","kava":"^4.4.0","prettier":"^2.0.5","projectz":"^2.0.0","rimraf":"^3.0.2","valid-directory":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"npx @bevry/update-contributors","our:meta:projectz":"npx projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"npx eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"b755edf0a64ce40929138266193f5da46b920bfe","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n## Usage\n\n```javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {\n    /* options */\n})\nif (ambi instanceof Error) {\n    // Error ....\n    console.log('ambi failed to load because of:', ambi.stack)\n} else {\n    // Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n```\n\nThe following options are supported:\n\n-   `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n-   `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Import: <code>import * as pkg from ('lazy-require')</code></li>\n<li>Require: <code>const pkg = require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n```html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require@4.0.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/index.js</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>lazy-require/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for web browsers with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"https://github.com/RobLoach\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@4.0.0-next.1589158074.b755edf0a64ce40929138266193f5da46b920bfe","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-xtvxUo+qbEulQBcc1WREhpRGzQXXTOCeDB+Y9MhtE5XQp0sOoy/l/p7YhwZQOZRCyVKP0Y6l5bxAvL0MuytWkQ==","shasum":"0c87f03684d16f32ba70051217d7307624b1c0ae","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.0.0-next.1589158074.b755edf0a64ce40929138266193f5da46b920bfe.tgz","fileCount":8,"unpackedSize":37482,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuKC8CRA9TVsSAnZWagAAzgkP/RsyzFzfQtIB//f6cu61\nu9M1NJQ4gEYn/Jt3lwj06V+/VRGkUtvgMJhPqcVzc9mSEo8Z7AeDKq3x6NQK\n3z9r6uqzDlzxUZnvnUdCJIwq+onBVG1F/hcnwCkFunwyGrzs2faZvnEXdO80\n9y8yXsmjBfRAbvpU8cllajKDZajzvTT9imAEAaTd9Po+2P36J2UhIVe/rBsc\nCjkv9/+7A1NoNguWNrFb5L7rlFY3KM3m3qdhkifqkszzjO9qItkykg4WFj9I\niCNtP/JarJP9fW+lmJ0CC9v+KE/JechdheYvgDjpiTBwzCeqCtQ5z2/iQ1bi\nfu/B2eQ3njQCJlXJxiIis6Ohbzx4wNGPRfHAlNBqyGbJ1Ok9wLiR70i+7S6b\nE0aXTjZt3px98NvhmUM1ThRHdTggrcFVZQ6x6HnljNw/WViTXKzVP/A/bBuy\nfjs+Z4o+LtvyvvmHrdMCf5OBbj+gu1Ku/sKiL8XfO/p0bHjn38pERm/hMi45\nYl4HnP2xRaCBAKU5Kgpk/0LM1oMar/vHnlr+98ox+QrNEETniOK9yh8DgIz0\neGmk4eEovbDXYixb5X7gpbLzfZ6q7/EjxA3G1KRxmlPYFSus67dbrR7Gk9g9\natE58Z7eJQtkPpdngTZfTsfHWh3RBLI75jMg84T7lwX1kU1Sv0dxBQt3Y2KN\nZd5K\r\n=TeFX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG0ER9f75lF7B3F3WD85bY5unyA7d//Cp6V13XZ99qcnAiAhcjGplnW0OTWwkf28+lewRB82pmBJcB0O3/ZuKcRSoA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.0.0-next.1589158074.b755edf0a64ce40929138266193f5da46b920bfe_1589158075902_0.5417274269378747"},"_hasShrinkwrap":false},"4.0.0":{"title":"Lazy Require","name":"lazy-require","version":"4.0.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","dependencies":{"editions":"^2.3.0","errlop":"^2.2.0","extract-opts":"^4.3.0","safeps":"^9.3.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.6","@babel/plugin-proposal-object-rest-spread":"^7.9.6","@babel/preset-env":"^7.9.6","@bevry/update-contributors":"^1.1.0","assert-helpers":"^6.2.0","eslint":"^7.0.0","eslint-config-bevry":"^3.4.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.3","kava":"^4.4.0","prettier":"^2.0.5","projectz":"^2.0.0","rimraf":"^3.0.2","valid-directory":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"npx @bevry/update-contributors","our:meta:projectz":"npx projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"npx eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"b755edf0a64ce40929138266193f5da46b920bfe","_id":"lazy-require@4.0.0","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-6aNmpZdLWefqZ67i2mycdGCbiHE1bmqJ0Yl2go5ULG/5qsT77Ya8CPhj0E3f69ZErDvFpMYFryOBXFixg7WlzA==","shasum":"9dc5155033b69fd96a100e1c5fd447483531234c","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.0.0.tgz","fileCount":8,"unpackedSize":37425,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuKEBCRA9TVsSAnZWagAAvQYP/3Ip2WSKOqi9N2gC8Oyh\nHNTVbwCXFIJuprFjBb8oVIyRuHVvUBmAE2GrS7kbgoq8rA6j4NcqEaKfR29D\n1iWnVXvV2v8wflmKTemUq9ECm+fl1ZtAOvujW5bo+WairvEo0L+sro7Mlw5A\nilxcGCzj8pl/fiet8peJXR9GG4uQfvKJC+YWnmJX1aHe/6VNo0JK2V6P7rKS\nbS6dKz4KwdNOirwjlVAupnFwJzRzYi19ev3Mbgd0VNjzs7oe4GmBEde9Q11q\n/MFk4JVlH5j42p3S7BHpiNBB1Pde5ZcxClV80Vi7hr0LpH3qUgmlZH4j4MOO\nvDXXcRzQyIKEDNAo5t38J9ZP2D0Jwsy/Uf6lnEXBTzPtLAl1EVtaB5kgXI6+\nv2v8mvUVK8wAZoQmO0B6EHkiuwNPUxqmcM2DIZKH3KtCEWhl8gpAFMfaH1G1\nSJjp6Q09fT2o4rAzO5MYR+f5AHOPxkUo5nahnhi1FvM6uxakRkqxX5GWs29l\nEsve97pI2Tuxu51fm3Ft7yF2hdPlM8HgQRoQcf/OqN9Z0QIYbMsDIrspr3GW\njmZKIYe0v3SpQ+LxB8s+zc2qjz7Yy2EbxvqXtwYJrJlEr9aq6jBzIUtuFNYN\nP4nC3fZmqxR4ohGsFunjyzNobau93Ftlie0oAFQdOMgcHDMXtm3Lxv2cXq3O\n/vuj\r\n=qb1q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEml5XzhhTDqskovasglLDabL8hNzLMSm24/9ZFNZA8wIgGt/0iYgOOG4sTduWPTcLiKNftLgAAXa0bbsUj0WYzqA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.0.0_1589158144687_0.018913863285458188"},"_hasShrinkwrap":false},"4.1.0-next.1590002218.55161bd01f4d2d87b2f1c87ede80d0462aef28c7":{"title":"Lazy Require","name":"lazy-require","version":"4.1.0-next.1590002218.55161bd01f4d2d87b2f1c87ede80d0462aef28c7","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^3.0.0","extract-opts":"^4.3.0","safeps":"^10.0.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.6","@babel/plugin-proposal-object-rest-spread":"^7.9.6","@babel/preset-env":"^7.9.6","@bevry/update-contributors":"^1.5.0","assert-helpers":"^6.4.0","eslint":"^7.0.0","eslint-config-bevry":"^3.5.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.0.0","prettier":"^2.0.5","projectz":"^2.1.0","rimraf":"^3.0.2","valid-directory":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"55161bd01f4d2d87b2f1c87ede80d0462aef28c7","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n## Usage\n\n```javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {\n    /* options */\n})\nif (ambi instanceof Error) {\n    // Error ....\n    console.log('ambi failed to load because of:', ambi.stack)\n} else {\n    // Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n```\n\nThe following options are supported:\n\n-   `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n-   `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Import: <code>import * as pkg from ('lazy-require')</code></li>\n<li>Require: <code>const pkg = require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n```html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require@4.1.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for web browsers with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"https://github.com/RobLoach\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@4.1.0-next.1590002218.55161bd01f4d2d87b2f1c87ede80d0462aef28c7","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-W4iQxqPf/fHspxBfTis28mYoE8XfasGN2mZvNA8ocbnkupeKmBw0Pzk77hyQ0wvs74hu7DTTeThkoeeiA+nLwA==","shasum":"6c3b17a8403179c75363a0ee383476876b6b9293","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.1.0-next.1590002218.55161bd01f4d2d87b2f1c87ede80d0462aef28c7.tgz","fileCount":7,"unpackedSize":37242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexYIsCRA9TVsSAnZWagAAy0oQAJyldoZbgYgX9rL+zoB5\ns4vXib8ioz8MblF4Ci7ALSj6R4k/EbyJD5mJE+DTHc0utCLiQCiz3/qoomP8\nABuY9xq9KYuIsnY9235megT9IMqcdV2VipbsElFAxG7bDmUA8tc/ituDgf4c\n7adhqFWQA7fyDDJ4+6sAIo5l7sHjfF4vk4rVom/nqSRL0spwF0mc9j/+5Lu+\nkFW/4M8+SpYY/NzbYjmHVfSjAyYUfQgpxM4P2lAaYjcARdDWZSYSFG1xMVaV\nKKO54I/Me/HvHCHcU83jm6ygCg0vSkxIULQzK0TsPojwa4voVXtBN7OzKy9t\nwHC+/Rho37dWQr8YmZz/R9bu2yzpQg1xzksDKunAD3z0+1rVUsqd1Co1eXQb\nY6kHhv2NqrBiFSHy3015PfuxDLofk4Fb6r4EG76On/q+6Gt6ScXv/J01AuVs\ncrs4+2qrvaW29J82Q8wh2i46fuKstdXMk1KCHVAX7ERXVoHTQGSCSx7jgFq3\nJ0RZyfTvpqew/Z+sVH1mgjcPPygXDR0PviQmLRwTUU7oEzVxV17qBa6mCriD\nJte2guqWv0hFJwCZsirYcqxk5fiySf7aDS6FBKrMNCGO3V8UNWmaMuAmiBbG\nq1Rw+CtzMucXiqLExUwBSuZdt+j+cOM6E+IIK/FbC+KOMIxBAsx2X/3R1Qwl\ns9j0\r\n=vVpi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzUdnsOXH1SovLelaEnMlJuJZb/gtgZBG+/e+lPLx7+AiEA7r8q7PH4YQOeswJ9ARkHyfWciXzJqfFF6ph4fiZPEOw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.1.0-next.1590002218.55161bd01f4d2d87b2f1c87ede80d0462aef28c7_1590002219575_0.05302907727240602"},"_hasShrinkwrap":false},"4.1.0":{"title":"Lazy Require","name":"lazy-require","version":"4.1.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^3.0.0","extract-opts":"^4.3.0","safeps":"^10.0.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.6","@babel/plugin-proposal-object-rest-spread":"^7.9.6","@babel/preset-env":"^7.9.6","@bevry/update-contributors":"^1.5.0","assert-helpers":"^6.4.0","eslint":"^7.0.0","eslint-config-bevry":"^3.5.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.0.0","prettier":"^2.0.5","projectz":"^2.1.0","rimraf":"^3.0.2","valid-directory":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"55161bd01f4d2d87b2f1c87ede80d0462aef28c7","_id":"lazy-require@4.1.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-HoXPeZEonlq+iHZWyF+UnoYXADGPwjs22wGVVbBve8URPCxGR9RchEyG6wRw1/tRpc2gIF48jX9kHQiPMoMHpw==","shasum":"756dc66a436cb3edefde782cc44c2e5f3c4bac14","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.1.0.tgz","fileCount":7,"unpackedSize":37185,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexYJ2CRA9TVsSAnZWagAAJAEQAIVEhoViWoc2I9A/GpRf\nWZJA2U5hOyARMO9HXo7xNbz/TMpm7duEYJO2dK+3gJ+ghBLiZtEGZN/h9rQS\nn9PiS33aojTrsKVmnF8FUM8ZdsIW0TCDKHgVPYJLrB1QUv4Lj7W8fQt+qbKB\nBFSsHKt8mAC2KXi8IpzDTiV0GG1rZK7OCTIv6hDElmkDdNx+JRQEWs+LEThf\nTu8nCTUklsmIDoqytMce1lae0Cos0HcK6+y1cMht8uEEcBdkJNjV7+GwM6z4\n1574ETdOQBMRpMP+cuk7xLms8ET+MGm2OmAnOC3hHdbyn3FjT9modwBB7huw\nnf4pR8YJrfOh5xktAc1TJTUioSf9oIW4BWhdkK7HoAxDQoWV2bXAFkMmwX9E\n+R7CEafMQXGGWlD513Cqx2Ed9m+kYElKuMq89KDFe0ZJ/tQ6clSJyz5diIIh\n9Vlrip0zftujz3mPqJwqAVxdlwDTBcrvyHYG7NKAVK7/iUthV4fX5bKeQmY5\noRc+e6oWMe7ReK/c85uTDC3b58aNxbC98/juc5HWw8W7kiyB0IhH9WYd+zq/\nnU1s5H1etrIUkdAYnlu/AZ3vRGWewmt6qWXXBOGyiht7BoBGi4ULxvhSahXm\ncpLrLmuhHFQQrkHUCdWkMnP1rLyiMPBZ0gnnqU+fIejPZhzxg4180BvQRNIa\nXrC4\r\n=75m0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLKxxppnDlhZmVsdeXR8U5Voq1wLjE5kk0eXSshvVkcwIhANFwByzpGXq6I5IgHMy5yLyt5Z3jioMDhe+Tws3y+h5R"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.1.0_1590002293960_0.6042160540813517"},"_hasShrinkwrap":false},"4.2.0-next.1590051062.749035fdfae501719a7f29d61c0af97a44e5e509":{"title":"Lazy Require","name":"lazy-require","version":"4.2.0-next.1590051062.749035fdfae501719a7f29d61c0af97a44e5e509","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^3.1.0","extract-opts":"^4.3.0","safeps":"^10.1.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.6","@babel/plugin-proposal-object-rest-spread":"^7.9.6","@babel/preset-env":"^7.9.6","@bevry/update-contributors":"^1.6.0","assert-helpers":"^6.5.0","eslint":"^7.0.0","eslint-config-bevry":"^3.6.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.1.0","prettier":"^2.0.5","projectz":"^2.2.0","rimraf":"^3.0.2","valid-directory":"^2.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"749035fdfae501719a7f29d61c0af97a44e5e509","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n## Usage\n\n```javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {\n    /* options */\n})\nif (ambi instanceof Error) {\n    // Error ....\n    console.log('ambi failed to load because of:', ambi.stack)\n} else {\n    // Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n```\n\nThe following options are supported:\n\n-   `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n-   `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Import: <code>import * as pkg from ('lazy-require')</code></li>\n<li>Require: <code>const pkg = require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n```html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require@4.2.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for web browsers with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"https://github.com/RobLoach\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@4.2.0-next.1590051062.749035fdfae501719a7f29d61c0af97a44e5e509","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Dx3PEj4k77upG4saLn5iK0dhIG1mZ8exujwHP9K57HizpgOCpFZEIECqYaIvJ33BwekPHpbUeA3b8vZT+mUjOA==","shasum":"96ac03303beb9dad9bdf95e45ec14053ad7ad281","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.2.0-next.1590051062.749035fdfae501719a7f29d61c0af97a44e5e509.tgz","fileCount":7,"unpackedSize":37435,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexkEDCRA9TVsSAnZWagAAw3YP/R+riUaq8N80ND/539k2\nXf76uaC0IpX6FFsSsr1EIwMT2M8BL4Wf2izgcxj9T674duFqcoqRdW3o/YWn\nAsfrj/htfVZzLE7o7/JV+VHGy28yTw2c/YvYvQoqg32O/4R19Oop0pbPF5X9\nCkO3F2rN8Ykkp7fOBEFg2+ZV1yAa/Bb3r8JnBSs2SE56u1pDj6TRCzVUWpvO\nMYtl28HKNC8k2c4SBTCixlSo4nv0RvM/prJmbwDU9IVodXa1P/LlHSIzJh2X\nE0KMzAdQbT4qKno77SUYpsJUWSHc6QxEepzVfmFjt+UVH7rwjPvIQomgHwZp\njjxGlfvLibItsTH6GMVjhmtPO3B9jBQdWHUq9ZmVLsoromTVRqnjV4fgh33e\nxjV34hns5K0nFSPRtxjSTyEa/9HmmZ5nPMogSDkj+7wNd+p+OTqQXorW5TCW\nrX5rOXuXDJyt2oafgucrt52HmexKJHIUwOLoXfXD9/W/Pz+UyohzGcuvC70K\nRep1C6XBrXAiuPIXGQ5jZwiXkapnqoyAo6gg4pDfzfrglfoMY5IY0tj/m3ZK\nfmqfWr4kcIhs/L+W1kAbjk12auV9KS9+9ZVY70iXY4UI/r4Ef4shmBIVRQQc\nrZ6nZW3iZI8el9hICblgshwz46H8408CbUDhTILxklmGWBD6cnr+KtF37isJ\nQD+C\r\n=vkVK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmoksrAulzQLM/pgSTVbD68bsidQ/U63mPyTkayt+MLQIgCkQQL3K8mzuwdN5S9WQ0EpLze+3OsojyS56P0QW/RcM="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.2.0-next.1590051062.749035fdfae501719a7f29d61c0af97a44e5e509_1590051074866_0.07325932239552313"},"_hasShrinkwrap":false},"4.2.0":{"title":"Lazy Require","name":"lazy-require","version":"4.2.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^3.1.0","extract-opts":"^4.3.0","safeps":"^10.1.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.6","@babel/plugin-proposal-object-rest-spread":"^7.9.6","@babel/preset-env":"^7.9.6","@bevry/update-contributors":"^1.6.0","assert-helpers":"^6.5.0","eslint":"^7.0.0","eslint-config-bevry":"^3.6.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.1.0","prettier":"^2.0.5","projectz":"^2.2.0","rimraf":"^3.0.2","valid-directory":"^2.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"749035fdfae501719a7f29d61c0af97a44e5e509","_id":"lazy-require@4.2.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-GVlUtF6RVrwig78XnzBIvNV3e967gPMccfrxXE2ir54FyKsfizhoZUOlLXjds23urF77SzQSeAmPOo/D5LtIMA==","shasum":"c3840b39767ee3c245650211a0880e8d85911146","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.2.0.tgz","fileCount":7,"unpackedSize":37378,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexkFCCRA9TVsSAnZWagAAIioQAJXToI81R0P7ypf7gtya\nEEb1pr2pkBFzbHhIVXnBr8+TFW5WzGgKxULR56L/aL1+tBOeUSgoq8Zjn/7F\n1lTtjCvCYkyPhkAe8R6PyADBhjglU2C7cklcH2LWniYC3ogunTyuTl994Go5\n0jjgCwDsNjhyRffp2odSsyjueMs/7GK5nc9SLxPuPNItdKeHuNc9Dnn6bkSb\n8qttVo8nCAJWUFXtYuo/Q7T/i3pB3uD2Rg2Zc02w7Ik9atgGuF3Q8KgnhIKP\nf6mMeUe3aMJQmst7Czafw6kc1nQa3qNKnypB4RQ+j4jFhoqJLd3/FsigbXYV\nlSszb+gk1VUcUrfq/KDyDUVA2ClvbCapEj7aVPkX2Z7tsUazVJuzeazPF6u5\nLMFYUenIiYW8zxLPW51o+mctjdEpaea35aQzL91tyfyjue+y4QXP1ACZNE2y\nRnt8tSfc4MiKtUoQ/BwZZxmB4S4r0mKPaRIGCekNXUqr543XfIN/mEWnofoK\nIOJcfoEsQucIEHpyUZBMoGffgrrq3ZRqN6h3dFDJffGLj1gtJbPM+Af6TUux\nzeuMADfESQ/b49Of//dGnPTjdlHPz863V/B77RyE7WeSxCH8LCiDiMsALqTF\niqwJsVnHYJq+WrK6+ZsUWKiPtkLqms4iFvmYKgLGnOPrarV6yKzoCW9ZaQBL\nbyas\r\n=e55I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKMg1MLfMTR3ykhZb71qSeJh/t/rdKCoj2We13unTTDAIgUkwvuKASbteNqSHTVHPG+9Vgpj+e61Fi6/Q5Fc1SSiA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.2.0_1590051138396_0.4175044766842644"},"_hasShrinkwrap":false},"4.3.0-next.1590077488.737148f72a18d7af2719a1966a28fbaf27d7b334":{"title":"Lazy Require","name":"lazy-require","version":"4.3.0-next.1590077488.737148f72a18d7af2719a1966a28fbaf27d7b334","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^3.3.0","extract-opts":"^4.3.0","safeps":"^10.2.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.6","@babel/plugin-proposal-object-rest-spread":"^7.9.6","@babel/preset-env":"^7.9.6","@bevry/update-contributors":"^1.7.0","assert-helpers":"^6.6.0","eslint":"^7.0.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.2.0","prettier":"^2.0.5","projectz":"^2.3.0","rimraf":"^3.0.2","valid-directory":"^2.1.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"737148f72a18d7af2719a1966a28fbaf27d7b334","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n## Usage\n\n```javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {\n    /* options */\n})\nif (ambi instanceof Error) {\n    // Error ....\n    console.log('ambi failed to load because of:', ambi.stack)\n} else {\n    // Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n```\n\nThe following options are supported:\n\n-   `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n-   `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Import: <code>import * as pkg from ('lazy-require')</code></li>\n<li>Require: <code>const pkg = require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n```html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require@4.3.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for web browsers with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"https://github.com/RobLoach\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@4.3.0-next.1590077488.737148f72a18d7af2719a1966a28fbaf27d7b334","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-cBLVyYTKFn7wmGQrzBOMPNNrZjg8wdl3QNKBIPA8e+Q2/LawH3qWfyaWbz/Z0frjqcjqMA5Hjd+prac/KXZ0ew==","shasum":"ef6eea7706b6f56e4415163320e6952a529cd553","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.3.0-next.1590077488.737148f72a18d7af2719a1966a28fbaf27d7b334.tgz","fileCount":7,"unpackedSize":37628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexqgyCRA9TVsSAnZWagAAh+gP/idCcRImSPRbAHNXz+YX\nR9i+710sigxU8qXgm3V4eaNtmlmcG5bMyq9TP4g2Vo+ERp/A4oLszMsX+yLD\n1GEAfItFdGr+nFOkygijTNWSwlUwR5LxBM6hTNeO80o09m1BUkhRv4NeAU3J\nN1fmwJn13tgFSJ54E16g4bIPcZk2EFenXc1dcm7exl8hZMSTDX+DGrDlRgdh\nhnTaSC8LspCYQmE0BmFU0qGrFDq5ef99FCL1V9irD1Je9Un3RO5DelNOFjfm\n2UnoyuSZj+y6liuDtHQ39YsWFAtyMYj1PcODSjxbrks18Mdq1ldAE556y+Iw\nnfaEU5MCPgOMCEAyxXIv+mvUybeZ5W/9HaPXnCVRyOwa9Cf/PEBi06Gs8xdT\nG1t66YIjnq9EWkJEz0UxDEOcHjQHhgf2lUAx4VhhK+XKO926bJicqtz0+lKY\n91U2Wt3IQG2aqJWLR4kSxjBlZ1HyjfW24SU8UaDzGpKLRVhpnbLCJaRDqsHc\nZs/5X744w1o8g3VifVlZvCFRszjfhOe8YbV3j3cAgEYBX2c5zSP0C62g8RaE\nqDy3e1r8L6AFr8afbBCzoa2v12+ca3q2GZT27BKzZyLudXzbxwTTIPQ0K2qg\nYYT4Plw+KZ/fABEA8wNexnonF/FpX/Vux6ekD/4Q1tTaYavqlNt/d7fGCLsi\nxgEf\r\n=I9F5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDg2GcCEXB1869rklpFaoUOVpeyUSnAaWseok2tVAGEcAIhAKrM5AVXmeJF+B+b6/EZqPaFuYbow08T9/Mk3HXidrwP"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.3.0-next.1590077488.737148f72a18d7af2719a1966a28fbaf27d7b334_1590077489760_0.2396225144796269"},"_hasShrinkwrap":false},"4.3.0":{"title":"Lazy Require","name":"lazy-require","version":"4.3.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^3.3.0","extract-opts":"^4.3.0","safeps":"^10.2.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.6","@babel/plugin-proposal-object-rest-spread":"^7.9.6","@babel/preset-env":"^7.9.6","@bevry/update-contributors":"^1.7.0","assert-helpers":"^6.6.0","eslint":"^7.0.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.2.0","prettier":"^2.0.5","projectz":"^2.3.0","rimraf":"^3.0.2","valid-directory":"^2.1.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"737148f72a18d7af2719a1966a28fbaf27d7b334","_id":"lazy-require@4.3.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-9rDtbhrsNm98+2gZfhiy/7RnYr+kianiAnlhJ/Ora6zIP0tb53qgzk8tpw3q48q9hMoHQtJzBKDXRmkW/UXc8w==","shasum":"46be749d72a44c7cfdf8366ed42673932a6965e9","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.3.0.tgz","fileCount":7,"unpackedSize":37571,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexqh6CRA9TVsSAnZWagAAMZgP/2C7isKUrgKrtq+/0BhT\nu83v/4X5CKtzzvHSxLKHiXuDec+A/s1mmnVS/Vm+eKnevt+TOj9zoQ1jHh34\npOAP3jO+3zE7sgDl48p4BOJQ9B69H+d5jy3Gmx+P6r93v3ShrRhlpAkoe6hg\ntp3dQzzov3DE7GX10BtYwKqzPFbH9b/bEA7eGGmcYPWYdH2BEsYMvlzqidOU\n0cGMGK8zc1bzfu/XRW7SbTae8hp3f0FAkWtWMsqrTADs7o8I0qOTdr3kXR0B\nXFdiwRQlyARcCnhdgblmwXAxSLMkrbArFUlhrrmOkZaOUHgEkWfU+RIbijUz\n6aD8IMJKuKv9OMW0AlGQg1qOIYKL6FqZCDsmzhfIR3Fufqmmvqfen1fSMyJP\nQK0lfU7WVaEufY1c8r2WZFeyvQrErczEmYMkPcXN/LGbaKoAFPKhjiHcK1gY\n8pFh0qY260K2tp/gpr5bq35fSFQwUxTUS9tNfhjtF+Bsi/HaGab/v6mksRzF\nfo+lqvof+0+MvlgWPMmdG7PCZuKCufTMhrwVDZ3Z9lfmqkHzv3+QyeC3/41J\nrjSr3/mhGYJb6K7gb3Mrx+QS3cS13RO4Q/erCycALiOBaVumjbRWb47pJqSR\n+JfE+qoljpS9G/NUR9i4Tfd4AqoiFU5o9GUcC40biDlN/7PNrdP+9x2GCaFK\nsKO1\r\n=Ikx9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzSbE2EKH6DWqWZWHoQRBxoTAodWv2Yop+KdZ3IWeVaQIgIp8dDcuHlQKQU1j6BMcJKMQVgMNu7lJYX+QEOeD6JXw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.3.0_1590077561459_0.5125621693232376"},"_hasShrinkwrap":false},"4.4.0-next.1591781122.3492e5078785e2fc363e9c321a5e2f7d48bf736c":{"title":"Lazy Require","name":"lazy-require","version":"4.4.0-next.1591781122.3492e5078785e2fc363e9c321a5e2f7d48bf736c","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^3.5.0","extract-opts":"^4.3.0","safeps":"^10.3.0"},"devDependencies":{"@babel/cli":"^7.10.1","@babel/core":"^7.10.2","@babel/plugin-proposal-object-rest-spread":"^7.10.1","@babel/preset-env":"^7.10.2","@bevry/update-contributors":"^1.8.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.5.0","rimraf":"^3.0.2","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"3492e5078785e2fc363e9c321a5e2f7d48bf736c","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n## Usage\n\n```javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {\n    /* options */\n})\nif (ambi instanceof Error) {\n    // Error ....\n    console.log('ambi failed to load because of:', ambi.stack)\n} else {\n    // Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n```\n\nThe following options are supported:\n\n-   `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n-   `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Import: <code>import * as pkg from ('lazy-require')</code></li>\n<li>Require: <code>const pkg = require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n```html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require@4.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for web browsers with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"https://github.com/RobLoach\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@4.4.0-next.1591781122.3492e5078785e2fc363e9c321a5e2f7d48bf736c","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Muh9kW2PebDnRRPX+clmiVdEFCToI3k8AWeOGDeulNU+6t51GtfmrgTiQuoALiJwQlZsj/aYArBKulUwe0B8Wg==","shasum":"bd4a8a33d21a68d533c23c4057388eb1ae63ebb7","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.4.0-next.1591781122.3492e5078785e2fc363e9c321a5e2f7d48bf736c.tgz","fileCount":7,"unpackedSize":37826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4KcICRA9TVsSAnZWagAAf0oP/0Jkj4gnaKFcgPcYH5Jx\njItNJyPAc6gfLVJxcKa8XzKhRiAQiiYCoPyT0A1QkPxXYQz7mswW7GSvV1pl\nZ6EFlwbtubG9cayNE4KC3vMzUNZnsJSEvhCBW2fcUfBw+fTJfxtBPNf/anD8\n/iw39rwYOPP2KKorXg6h6Q4LHl+Sh7xXc5nad6+1Ox77u4Dm5BBHyHKHjDOS\n+h24j3zrtgZKHgMJsgH36jAogTuevoRCszJJqO9QsRH3BYKA8DVF509EThCJ\n1dnWXT3F6J06aI+9nby9MlLi+dNTpIAMv9JnANKGslbl8lDVqVgAVyxDR7cU\nkvwI+wcF7tjn48u4+CRQwouYjP/EhzS4fgpSuQobOHQPB0G2h0l9AHCyqIf2\nZqlFMISyu4bJWUAJGPY5fHyGrwXtZTiCSOM4sJ0V6sPDm7362dkolKLIr5Jc\ncMNeGB7kq3YHOiaCJgEv97I+QWNEznAZPylxwF2sfwncvjz73slVreofEf23\nRL0rNi3BPfUAVjueA676xaJIWQwkdUWrstGOkdw9HgZy8Mn4h4U0AF4OGuj3\nFhlMcaIDnknfxv6UTc4hqUEP4lsXGTxfiQZGUkoe3slwjd8z51Rii/UgOhrY\nuufaRlEWFZJiy1SZ++q5ZEqZwqNNRtdIrvTGMJesRegoo2yUyhaaiwu4Np2b\nCRfW\r\n=BqRT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhHfprv0sm8mh8xT4dVPhyqiSNzcjVDy45rLDgwWcSugIhAJ+I7r+422xFV34VL483MkzfT87krC1RusnOxhvDRNmL"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.4.0-next.1591781122.3492e5078785e2fc363e9c321a5e2f7d48bf736c_1591781127616_0.5876800442948436"},"_hasShrinkwrap":false},"4.4.0":{"title":"Lazy Require","name":"lazy-require","version":"4.4.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^3.5.0","extract-opts":"^4.3.0","safeps":"^10.3.0"},"devDependencies":{"@babel/cli":"^7.10.1","@babel/core":"^7.10.2","@babel/plugin-proposal-object-rest-spread":"^7.10.1","@babel/preset-env":"^7.10.2","@bevry/update-contributors":"^1.8.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.5.0","rimraf":"^3.0.2","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"3492e5078785e2fc363e9c321a5e2f7d48bf736c","_id":"lazy-require@4.4.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-cji7zOyflfxO4HGBWGjDus0rbDA8DHW9WgktxhMeDtgFjnDblo7QthjuxxKGhOnysnI+o2K7q2TMl7cXHb9lzw==","shasum":"8a2821f642aaf0f94ece57d492f441810307ecf7","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.4.0.tgz","fileCount":7,"unpackedSize":37769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4KdMCRA9TVsSAnZWagAAjKEP/0HYDJL5rPP1b5WEGW02\ncIue4i0YpRQzNLcrFPKYMoyFVZgHBUz35x1c/N5mBk9b2szICxeqHQ/KoeGv\nX6u9RtXJcRDCK6m2LyNAI/eL3CLXePTO6lqohzW+q8GVVnVliHtfK8HpUnQb\nWj5YDAt28JIwd5AHlpIfXmyQVYDY0WW7uEPKgfGuYUvxsTe8ukdBlBD7zZUL\ncC9zWmktawTfa1xgC7PU2V4i8xQO64p8REur4Sq49tffdmD/d9mhY222RGIh\ncZP1i5CForpI5O5COk6OiGEYa9DeL2nsFWmkr1k0nFZKho/48rGPc65VbHJx\nrbYd6LC/7gLWGpYdAt5m7mgYXcu4xisW2WIPSZDnTtVc5hJrWrFiSwgl/oZW\nTp856JZkEa2nXcaTw+1laZ/xIQbhJ3XiVi7rswO3KiNJfpKbLryS28W8Wu6Q\nnA6TTGln8S83AbrA18i2T6QkQVxmBeieVg6UXcnyarRdlNepet10AN2ufXzc\n7gUfPa58shAjNWg5m8ntlvQ9XkvQFK8VNeaJvMRii4nNxs3wacX7S1sUY0BG\n7pfho4cALlwNDRLCtHtTvYazHsX4BfkMb1kChlGXUfNlDDoI8FxgUHNcnSXa\nODTgpYFwnWbvl/Uj0ADpVrBn8exb+9J6s0N1O+g/9CVEurw2A2EikppMwM3S\nVJ2h\r\n=GqIG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCb90vM+k9MPzRYOhev0HbpbpOGbAwl9B8ptkH9ZGFG4AIgavBiXEJuPnHcdPvz8UPODC15YYTP+TT4XAq9bTxo4b0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.4.0_1591781196383_0.9756274909552483"},"_hasShrinkwrap":false},"4.5.0-next.1591798235.6f80235c06876d08ab41119f53768eb8d3016b69":{"title":"Lazy Require","name":"lazy-require","version":"4.5.0-next.1591798235.6f80235c06876d08ab41119f53768eb8d3016b69","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^3.6.0","extract-opts":"^4.3.0","safeps":"^10.4.0"},"devDependencies":{"@babel/cli":"^7.10.1","@babel/core":"^7.10.2","@babel/plugin-proposal-object-rest-spread":"^7.10.1","@babel/preset-env":"^7.10.2","@bevry/update-contributors":"^1.9.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.6.0","rimraf":"^3.0.2","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"6f80235c06876d08ab41119f53768eb8d3016b69","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n## Usage\n\n```javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {\n    /* options */\n})\nif (ambi instanceof Error) {\n    // Error ....\n    console.log('ambi failed to load because of:', ambi.stack)\n} else {\n    // Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n```\n\nThe following options are supported:\n\n-   `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n-   `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Import: <code>import * as pkg from ('lazy-require')</code></li>\n<li>Require: <code>const pkg = require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n```html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require@4.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for web browsers with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"https://github.com/RobLoach\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@4.5.0-next.1591798235.6f80235c06876d08ab41119f53768eb8d3016b69","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-dNopNyYJiQTf8C4DJvUeE/Y/4+tRHW31oy6RXmlT89L/zDPXrjqPC/kIvYGsVzbxEbjvvVg6dfafQp5JJYSIGA==","shasum":"5323c007213ae11ed1723896c74d8d9b103579c9","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.5.0-next.1591798235.6f80235c06876d08ab41119f53768eb8d3016b69.tgz","fileCount":7,"unpackedSize":38020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4OndCRA9TVsSAnZWagAAu8QP/0kQpa/SphgUI8oouj3+\nbjNc6atgHplsIzllXCEji3wLs6/YKI6Yhg4G0qwxAzuIBP9TXig+tBC+B/Eb\n2o28tGfOTNLGc1lR8uEZHq6kN9ZFEHy8hM/blT34WdSH6BDE9hl6PbAdbpZJ\nUDayzCErnxK3LX/uNLSAPg1vNYpL1yZEObRt+eTFd9zSA9u7GLP3lR16CXyr\nJ8qrbQXL3owYmw9+z+pN+3yKrRBPnIl4eZRyv2aAvcsj0FRD+thbUtOf+yXc\n4ytyFh1VGxfXE0HLHL+YefRL/o4xePRMVdujNMGegcHp4v5EhC22MkI/VYjS\nYUtgl3ka3bzzcBztj+I9STHw+XZWO9vik4kzUt62ZC/47PA58QYWs/FGU/5T\n9RTba8YkYByUzj8uFJhG3VzM7fkx/ZwXgxFxt0jIDjmpetg0Tm+hqsWo5Hm1\nJVvRe0XuthSh5pYBZTYePmegMk1+pziqfrIAX6Wl9NmLymPWnmlXB4f3AmNw\nGn0TkCd1DgGDmLexd+EcuVBLij8bzGOYjWTE1YijEjpbY7W4w7vopkAXVbNt\nSTIfeA18tbCXhvQSbUyLsWX9hUx93fm4t2sp6rajc2m1rYzqSdxKyyoGaKsX\nQAbPsTGCXgkTXuXMgxE9r85LqTQcDQ7k050ZW7pxtNymnY0+7dBAVscddYwZ\nMqMQ\r\n=GbNn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDv6HtTxwlMRu2yYGrr7uRpxR94LA8sSL02KzpKM7h2gIgXpjwDSXOGrHA2z1eghbXdqOh5g8TTJJOjaLYf5SPMEw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.5.0-next.1591798235.6f80235c06876d08ab41119f53768eb8d3016b69_1591798236967_0.7516246122896553"},"_hasShrinkwrap":false},"4.5.0":{"title":"Lazy Require","name":"lazy-require","version":"4.5.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^3.6.0","extract-opts":"^4.3.0","safeps":"^10.4.0"},"devDependencies":{"@babel/cli":"^7.10.1","@babel/core":"^7.10.2","@babel/plugin-proposal-object-rest-spread":"^7.10.1","@babel/preset-env":"^7.10.2","@bevry/update-contributors":"^1.9.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.6.0","rimraf":"^3.0.2","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"6f80235c06876d08ab41119f53768eb8d3016b69","_id":"lazy-require@4.5.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-4BRBUHSiVpVqkd/1uy5wp6+l8Iz9k9f6dV9HA/vCJEYd5nZ2dvvPkKpx75AEU4Heq1efUEyGifuVQAp++krVAw==","shasum":"3fa7198300fd816c46cdbcdc037ab5f5df202051","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.5.0.tgz","fileCount":7,"unpackedSize":37963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4OosCRA9TVsSAnZWagAA41kP+wSkje8KyfKqUyN1wEYZ\nDZCaxireNu7AV1cwxkF3oJob+wF4AqUs50WZhVeAMHKStc17y2n8NYnHlx8Q\nVPTQOoyjjMVHEzFM8shQl7tsb0KYiYf/SNTtwbJIdhnE92ncHRd09yssuoMm\n3M2NKMO9NUV9Vc5xnvSeQwdzhrGANPJnTCUsPkmHt3Y79DOwQgGRgWtx69sf\nOgbZFWJCEXxUMdsZGZTrzm6rxwyDL61U9TXWEYP4hU77gO+42NwPfkPhYh/D\n+giuP4GisbsqPAt/npHIiomu/tTMVNXZ/HUTZM4WtG+3S159kMiYzDKRKC6/\nQ92RbQnbkZo6ICVDHw1532AzFcAtuYC18nQ1BSWJERoR3ix+MA5KMNxQ87ZN\nRCwN9BiqASg8qBA63p8cq8lqxEk/aZ45xcjsMAZTwE00LQfANnoYDSNXnCNc\nCGDPlJIUW6cXgh81+4aL6vMZueW3Us+Aik54y+5kk5jjo18Xk+Bp0q6FDdxD\nPdj5fdOmQM7tONz6zyI/kYTq12zMuyX0o46FWBeJLoJb6EadLkCXgS2O4H/A\nJJevUymCrpYla3VPvKeFNeijaArfT+8IclGElDf/5rlx7JY4/nJxFK6jALFw\nKWxFzRwKSj7JszIdXiGc/O+DXt4MVDEd8vwjw53khJbOkflwyTFWFc3q2AmJ\ndpvx\r\n=JN9W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC/LVJxdoFxAj3pqia2WWroGWifNg4XGf9o/F0RkDtZ4AiBSTyU1AF64xO75INiW05wg4fIiJAtFwZSFQxtlYAjF/Q=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.5.0_1591798316175_0.7032633312368612"},"_hasShrinkwrap":false},"4.6.0-next.1592625008.c8b34a2b6ede883d2f6f79cc3037a357c8149d8b":{"title":"Lazy Require","name":"lazy-require","version":"4.6.0-next.1592625008.c8b34a2b6ede883d2f6f79cc3037a357c8149d8b","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^3.7.0","extract-opts":"^4.3.0","safeps":"^10.5.0"},"devDependencies":{"@babel/cli":"^7.10.3","@babel/core":"^7.10.3","@babel/plugin-proposal-object-rest-spread":"^7.10.3","@babel/preset-env":"^7.10.3","@bevry/update-contributors":"^1.10.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.7.0","rimraf":"^3.0.2","valid-directory":"^2.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"c8b34a2b6ede883d2f6f79cc3037a357c8149d8b","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n## Usage\n\n```javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {\n    /* options */\n})\nif (ambi instanceof Error) {\n    // Error ....\n    console.log('ambi failed to load because of:', ambi.stack)\n} else {\n    // Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n```\n\nThe following options are supported:\n\n-   `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n-   `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Import: <code>import * as pkg from ('lazy-require')</code></li>\n<li>Require: <code>const pkg = require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n```html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require@4.6.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for web browsers with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"https://github.com/RobLoach\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@4.6.0-next.1592625008.c8b34a2b6ede883d2f6f79cc3037a357c8149d8b","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-6K9eBXsGyoY+tOGjVGeVXgTXdLqqJm59q+3KJrHO/zs/EFm9VvxL9AVdNjwDJV5TIMBfpBGqDsqJRglpOXjF3A==","shasum":"cc56492443f9b64f55c3f1da707ba2bfe785886a","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.6.0-next.1592625008.c8b34a2b6ede883d2f6f79cc3037a357c8149d8b.tgz","fileCount":6,"unpackedSize":37948,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7YdzCRA9TVsSAnZWagAAFQAP/RAJjybKAuF8gfupEh0M\nA5qWzPobjvDzrR6V1En4fjvn3BhyC6ix/VefDX3i+gSuTGnVUzK+D6uHOktT\nK6ilwkqlKd3sN+pLc98yWNKuHGpH/QCOxPEbLJGzVuGG/JiPB3GYpFY4C/qJ\nU4JTtCv9wtORn3D7r+Bycgx0tYh9wSTlV6D0I5hDdFQF5NGrER8W6ad4PBIv\nr6iukDsEtz4Dqd455rHiMSHIsxKEryQy/V3fnMm0o2u8SZal4iBjwmYwK8z+\nudmTx/wZUNGTZ4byzacZBr1pxfQdsrxnz/oxf7uCR3Rm855f0+reB6omvnol\nTFGfjvtpCKI34/sEA44W4SF1thn46gTxJ3+6r1fGnciDPgV1F57PMZh2xoIr\njbHnPQH5OjLGi5RkUByvipiZSNMHqLgGOoAOkCi/ZHMOl/78wKnCSfI4M5RC\nT4XA3pwL4uZGFC3qcG7JkVYPfFh9NHZrmdVxAsJIFbyJ2VO365j3t2hN1lPB\nER7+9m+2UY5E20ZYE1o6lZeFVC8q2xXvps5nM0sTQxFZJXUz5e+TgBFl7Mb+\nz7lwxnEQySGzY5RsmV/JhcWthIGP0IPp/r3WD9BA0pndy3sD3fpFLGak/KBh\n+/WwHQWqIgBjHExRQr6N6MJ66VdE+ysD0aMavFPX8biZ0XcxRl4AkZKaV3u7\nlm1k\r\n=Cf+9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGZ8Ap+YO+UNbAduIKHRK468rwjLLe3+BgjU0MHspfDAIgVreewHLjktbBYnGK84EvrYsj9HfeImFoWwsrj6/ARJ8="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.6.0-next.1592625008.c8b34a2b6ede883d2f6f79cc3037a357c8149d8b_1592625010537_0.35030426680225646"},"_hasShrinkwrap":false},"4.6.0":{"title":"Lazy Require","name":"lazy-require","version":"4.6.0","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^3.7.0","extract-opts":"^4.3.0","safeps":"^10.5.0"},"devDependencies":{"@babel/cli":"^7.10.3","@babel/core":"^7.10.3","@babel/plugin-proposal-object-rest-spread":"^7.10.3","@babel/preset-env":"^7.10.3","@bevry/update-contributors":"^1.10.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.7.0","rimraf":"^3.0.2","valid-directory":"^2.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"c8b34a2b6ede883d2f6f79cc3037a357c8149d8b","_id":"lazy-require@4.6.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-KC6Qf/HmaU2ViTqYkET1EQBB1BC3Ux1IAHUXC8LkZqxddye5lkoNoJ/eE537R1rBsi1RiNAex34FQGxwZxeIDw==","shasum":"0c847ff09261f41d4021d4114b6b4a46f747df29","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.6.0.tgz","fileCount":6,"unpackedSize":37891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7YoYCRA9TVsSAnZWagAAGVkP/jkFjE0bOQ1Dr+cPMcQD\nHudJ2m+7ccDy6AdyOX7lDPWSQ/ahuiQa4BeVta7QuYW0YA+5iv0P2JC7M5+0\n2JkKbZksSHSxf2gyME5uaqLXScnSNzFM48t7Oyu68B4HkZztsdtyXwatJiPg\nYnq36Sta5r/TOMQKf6nWuHUuTd+k1LAZWXp8rqnK8s9zCyNQhcGIuWd8fXYy\nMoVk26iDGWXlRivzSC+lEXiMU1wF+7UEyE5OD5pMN5gwITa1+GQFUp3xq0OK\nrZhhUVzRA7oyMzWwEa83dgP/9fmqd/HkJ2Q7VCcAQClYHJtORU+Wo3HRoiX0\nrnKFXtXlMAr2K3WQKoaWv9ODAtYhNgiiMz7MStatwxF80UKuQDckeLX5VX+e\nLHc8rCk+EdibsFOZJa/9KQB/ow/HSGeye9rUzYKRp8mB/TW53MZ+amirmqII\nFYdQOA1jXobd86SqmjZajdp6zqKzycfb+6L7MUHzmXtodoJh3ptem66GSuhF\nHlY6otFKGiGKKvgb32e+aZ83WOqFJUYsXC2yvh27IE3RwCg5xVrGLzwsbUtN\nC14TABBBwUP2S1PiWNG4Nu95r0kS5HN8O1dmcQlZaLnUrRPGJrTEQzVC/vDM\nhZjdccp+RdyRuugTPLvlxfFWgdBR3qxXp5UB6ehb4fv0nO1p5T4TagCSIBx3\nTwLa\r\n=TdVX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEmsXJnQ6rM62nBV1LYx3oftNzOzsB3oUFK7HnPcDXOHAiB5DeLCEDwh7/3o77ZIUWyjIrw7Et7ZSrQl9TGrSGeFYA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.6.0_1592625687968_0.5268791084744839"},"_hasShrinkwrap":false},"4.6.0-next.1593742352.14f59c28dd26de3d9f809e36d42360d24b6bed37":{"title":"Lazy Require","name":"lazy-require","version":"4.6.0-next.1593742352.14f59c28dd26de3d9f809e36d42360d24b6bed37","description":"Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.","homepage":"https://github.com/bevry/lazy-require","license":"MIT","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"lazy-require","githubSlug":"bevry/lazy-require","npmPackageName":"lazy-require"}},"funding":"https://bevry.me/fund","author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"ESNext compiled for web browsers with Require for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","require"],"engines":{"node":false,"browsers":"defaults"}}],"type":"commonjs","main":"source/index.js","browser":"edition-browsers/index.js","dependencies":{"errlop":"^3.7.0","extract-opts":"^4.3.0","safeps":"^10.5.0"},"devDependencies":{"@babel/cli":"^7.10.3","@babel/core":"^7.10.3","@babel/plugin-proposal-object-rest-spread":"^7.10.3","@babel/preset-env":"^7.10.3","@bevry/update-contributors":"^1.10.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.7.0","rimraf":"^3.0.2","valid-directory":"^2.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"esmodules":false,"browsers":"defaults"},"modules":false}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"14f59c28dd26de3d9f809e36d42360d24b6bed37","readme":"<!-- TITLE/ -->\n\n<h1>Lazy Require</h1>\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/lazy-require\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/lazy-require/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/lazy-require.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/lazy-require\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/lazy-require.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/lazy-require\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/lazy-require.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/lazy-require#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/lazy-require.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nLazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.\n\n<!-- /DESCRIPTION -->\n\n## Usage\n\n```javascript\n// Import\nvar lazyRequire = require('lazy-require')\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously, only available in Node 0.12 and above\n// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions\nvar ambi = lazyRequire('ambi', {\n    /* options */\n})\nif (ambi instanceof Error) {\n    // Error ....\n    console.log('ambi failed to load because of:', ambi.stack)\n} else {\n    // Success ...\n}\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously but with a callback, only available in Node 0.12 and above\nlazyRequire.sync(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this asynchronously, available in all node versions\nlazyRequire.async(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n\n// Attempt to load the module `ambi`, if it doesn't exist, then try to install it and load it again\n// Do this synchronously if supported (Node 0.12 and above), otherwise do it asynchronously\nlazyRequire.auto(\n    'ambi',\n    {\n        /* options */\n    },\n    function (err, ambi) {\n        // Error ...\n        if (err)\n            return console.log('ambi failed to load because of:', err.stack)\n\n        // Success ...\n    }\n)\n```\n\nThe following options are supported:\n\n-   `cwd` the module path that you would like the requested package to be installed to if it doesn't exist, always recommended\n-   `save` if the requested package doesn't exist, would you like to do a `npm --save` for it to add it to your `cwd`'s `package.json` dependencies?\n\nThere's some other methods also available to you, for now, read the source to discover them.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n\n<ul>\n<li>Install: <code>npm install --save lazy-require</code></li>\n<li>Import: <code>import * as pkg from ('lazy-require')</code></li>\n<li>Require: <code>const pkg = require('lazy-require')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n```html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/lazy-require@4.6.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>lazy-require</code> aliases <code>lazy-require/source/index.js</code></li>\n<li><code>lazy-require/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>lazy-require/edition-browsers/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for web browsers with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require\">view contributions</a></li>\n<li><a href=\"https://github.com/RobLoach\">Rob Loach</a> — <a href=\"https://github.com/bevry/lazy-require/commits?author=RobLoach\" title=\"View the GitHub contributions of Rob Loach on repository bevry/lazy-require\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"lazy-require@4.6.0-next.1593742352.14f59c28dd26de3d9f809e36d42360d24b6bed37","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-QQaWai395rTLcI5pER/Vq8OuV93KffEqTHMB40bHlIu0AAKM3RDSZA4738JHNVwlR+279crTU4iMyfB3T6bJ6Q==","shasum":"e746e96d37e2a5410d7509a568f436c559ce827e","tarball":"https://registry.npmjs.org/lazy-require/-/lazy-require-4.6.0-next.1593742352.14f59c28dd26de3d9f809e36d42360d24b6bed37.tgz","fileCount":6,"unpackedSize":37948,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/pQSCRA9TVsSAnZWagAALaUP/2+AnGR56dVYPKDXhJXg\nYD/8WZ95XteP4YQbFeXe1GyM2XHTfgkvxq30UlfsksYa1h0oJH43lGuG12rK\n5ul9rijGZLkfMxZWj+6thlhtVjv1u5miimX3w/fosbxRJ/0rdNWgiNKay4N1\n75PKOPfiQYQlY9ojbvBidWqC2UrX3UXy4a49013PZHJqy5bogIvAb3QV462y\nJ16qtjvAptaGv3SQCv/ldFntCyDbYb/qAui1dwCuZQ5dLFoFlQH1U24CemgN\nZQ4vAnDSxA6aYanLsAXnOqBT3KY6TcDfTE3Dq6zg4+rmrGBC0g3kY0Fx/BON\nqkLPu0Wcxwo2XNlt8DAKqsdp3N0xfkZMVjTALMdfQ11OiBnGq3T/NU0Gz3P5\n2EKsxgSdshvmx/Q4WiHS4Skw7JMumRVPmSUKUHVt3xiZZYE1bBlHANMGSf68\njtqE9JaEB7O0kiBRoL9SCLtz03uEL+BMsaUMZbQWoNf5/jRsg9VLV0NwgHB2\nqyT9blWXQrA2fyPMuRH2uFT7sU4b77LlABu6h+HA8PqaRZOmpLs0gBtKV64l\nY77zG+yA/UYfijjKyaflW7433o9l38HgojWqI7/hf4fv24DVSsUCRrJn6c73\nn6lDtU2IRRk3z04DSNhF46uQuijRBrcBqEkwfdThaBcFy9QeZ9FBPoTruwgy\nbQWO\r\n=nrum\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNwg2iBY5loKCkjMD+N6N9uTPIbs0J7fVl6xI7OhX0cwIhALLgw8SJXn9oG3daPq/8sbruDa1nG6V+NtG55JlZWbMf"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-require_4.6.0-next.1593742352.14f59c28dd26de3d9f809e36d42360d24b6bed37_1593742353996_0.3849280729394886"},"_hasShrinkwrap":false}},"readme":"","maintainers":[{"email":"us@bevry.me","name":"bevryme"}],"time":{"modified":"2023-11-14T11:12:36.501Z","created":"2013-06-24T23:02:18.086Z","1.0.0":"2013-06-24T23:02:25.605Z","2.0.0":"2015-03-17T14:00:38.897Z","2.1.0":"2015-09-05T13:35:03.825Z","2.1.1":"2015-09-05T13:39:04.837Z","2.1.2":"2015-12-10T01:45:42.968Z","2.2.0":"2016-05-27T10:39:50.575Z","2.3.0-next.1573582413.e44e9f2a580b38a5a8a6aefa42e2447c87ba8481":"2019-11-12T18:13:34.802Z","2.3.0":"2019-11-12T18:17:22.557Z","3.0.0-next.1573588019.a632ac136ceb89829d72790f05fc210703877996":"2019-11-12T19:47:03.231Z","3.0.0":"2019-11-12T19:48:01.627Z","3.1.0-next.1573614361.94a4affe92fd30b40a57c21af337e7f1931fa0d3":"2019-11-13T03:06:03.488Z","3.1.0":"2019-11-13T03:07:37.091Z","3.1.0-next.1573691940.8acf58d4be1a9fa5412ec95cc6d7c75771e9c162":"2019-11-14T00:39:01.842Z","3.2.0-next.1574054193.00fa7c0233200e3fa9d6c4fbcd5e63a7fcab74bd":"2019-11-18T05:16:34.985Z","3.2.0":"2019-11-18T05:17:18.649Z","3.2.0-next.1574656321.ee726e41b8b526881855646e302edac39d54d728":"2019-11-25T04:32:03.455Z","3.3.0-next.1575151771.b20d5ba1168d1b423ca3ffa3642aea21883ec836":"2019-11-30T22:09:32.435Z","3.3.0":"2019-11-30T22:11:05.966Z","3.4.0-next.1575216053.5deb173de798296b474369bcd6323b13990635c9":"2019-12-01T16:00:54.603Z","3.4.0":"2019-12-01T16:02:12.388Z","3.5.0-next.1575886141.07ef57283b28b0587ea6284fddad66a85f4463a7":"2019-12-09T10:09:02.863Z","3.5.0":"2019-12-09T10:10:18.105Z","3.5.0-next.1584138036.34a804f02c011d3da6ed0685b2602085c9b49b4a":"2020-03-13T22:20:38.200Z","4.0.0-next.1589158074.b755edf0a64ce40929138266193f5da46b920bfe":"2020-05-11T00:47:56.061Z","4.0.0":"2020-05-11T00:49:04.807Z","4.1.0-next.1590002218.55161bd01f4d2d87b2f1c87ede80d0462aef28c7":"2020-05-20T19:16:59.702Z","4.1.0":"2020-05-20T19:18:14.080Z","4.2.0-next.1590051062.749035fdfae501719a7f29d61c0af97a44e5e509":"2020-05-21T08:51:15.081Z","4.2.0":"2020-05-21T08:52:18.507Z","4.3.0-next.1590077488.737148f72a18d7af2719a1966a28fbaf27d7b334":"2020-05-21T16:11:29.982Z","4.3.0":"2020-05-21T16:12:41.650Z","4.4.0-next.1591781122.3492e5078785e2fc363e9c321a5e2f7d48bf736c":"2020-06-10T09:25:27.827Z","4.4.0":"2020-06-10T09:26:36.477Z","4.5.0-next.1591798235.6f80235c06876d08ab41119f53768eb8d3016b69":"2020-06-10T14:10:37.096Z","4.5.0":"2020-06-10T14:11:56.453Z","4.6.0-next.1592625008.c8b34a2b6ede883d2f6f79cc3037a357c8149d8b":"2020-06-20T03:50:10.712Z","4.6.0":"2020-06-20T04:01:28.171Z","4.6.0-next.1593742352.14f59c28dd26de3d9f809e36d42360d24b6bed37":"2020-07-03T02:12:34.104Z"},"author":{"name":"2013+ Bevry Pty Ltd","email":"us@bevry.me","url":"http://bevry.me"},"repository":{"type":"git","url":"git+https://github.com/bevry/lazy-require.git"},"homepage":"https://github.com/bevry/lazy-require","keywords":["browser","dependencies","deps","esnext","lazy","node","optDependencies","optionalDependencies","require"],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},{"name":"Rob Loach","email":"robloach@gmail.com","url":"https://github.com/RobLoach"}],"bugs":{"url":"https://github.com/bevry/lazy-require/issues"},"license":"MIT","readmeFilename":""}