{"bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"580c9f05d1e3f1fe5c6ef913e41c5d38b20f952f","tarball":"https://registry.npmjs.org/@truffle/db-loader/-/db-loader-0.2.22-visual-debugger.0.tgz","fileCount":6,"integrity":"sha512-hoPewH6MCGfrR3RYtVabG8ueReoYIYDxwFG2jz3qNqzPoqRuAeWc2g4KJbB8PFQQHr9E8LDsAhdjObL/I/p8Xg==","signatures":[{"sig":"MEUCIDEeo6xLr2Ssid+3o9JQRaV7PjnoPra8keqZ1AdFs3L5AiEAwSAiJ2ljf5W4AuY5B1Lq+JBLmGZwI7NHSsUL3GgJXBw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3509},"main":"dist/index.js","name":"@truffle/db-loader","types":"dist/index.d.ts","author":{"name":"tyler feickert","email":"tyler.feickert@consensys.net"},"readme":"# `@truffle/db-loader`\n\nA loader for importing Truffle Db that does not throw an error when it is not installed.\n\n## Contents\n\nThis package's main export is a method called `getTruffleDb`. To import it, simply\ndestructure it from the package.\n\n```javascript\nconst { getTruffleDb } = require(\"@truffle/db-loader\");\n```\n\nWhen you call the method, it will return an instance of Truffle Db\nor `null` if the import fails.\n\n```javascript\nconst Db = getTruffleDb();\nif (Db === null) {\n  throw new Error(\"There was an error importing Truffle Db.\");\n}\n```\n\nNote that you will need to do a check for a `null` value if you want to provide handling\nfor the case where Truffle Db fails to load.\n\nPlease see the [README for @truffle/db](https://github.com/trufflesuite/truffle/tree/develop/packages/db#truffledb)\nfor more information on using Truffle Db.\n","gitHead":"16365cc592b2c381ae597b7c0d51b67839fa8f62","license":"MIT","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"eggplantzzz","email":"pobol234@gmail.com"},"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/db-loader#readme","keywords":["ethereum","Truffle","Truffle Db"],"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/db-loader"},"_npmVersion":"lerna/5.6.2/node@v14.21.2+x64 (darwin)","description":"Utility for loading @truffle/db","directories":{},"maintainers":[{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"_nodeVersion":"14.21.2","dependencies":{"@truffle/db":"^2.0.22-visual-debugger.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.7.4"},"optionalDependencies":{"@truffle/db":"^2.0.22-visual-debugger.0"},"_npmOperationalInternal":{"tmp":"tmp/db-loader_0.2.22-visual-debugger.0_1683934713491_0.22667778340331424","host":"s3://npm-registry-packages"},"_id":"@truffle/db-loader@0.2.22-visual-debugger.0","version":"0.2.22-visual-debugger.0"}