{"_id":"@boateo6/easy-mongo","_rev":"1-98a0bb94ab575b4688534ad11fa6456d","name":"@boateo6/easy-mongo","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@boateo6/easy-mongo","version":"1.0.0","description":"Easy way to use mongodb!","main":"index.js","dependencies":{"axios":"^0.26.1","asynckit":"^0.4.0","bson":"^5.2.0","combined-stream":"^1.0.8","data-uri-to-buffer":"^4.0.0","delayed-stream":"^1.0.0","fetch-blob":"^3.1.5","follow-redirects":"^1.15.2","ip":"^2.0.0","formdata-polyfill":"^4.0.10","memory-pager":"^1.5.0","mime-types":"^2.1.35","mime-db":"^1.52.0","mongodb":"^5.3.0","mongodb-connection-string-url":"^2.6.0","node-domexception":"^1.0.0","node-fetch":"^3.3.0","openai":"^3.2.1","punycode":"^2.3.0","saslprep":"^1.0.3","form-data":"^4.0.0","smart-buffer":"^4.2.0","socks":"^2.7.1","tr46":"^3.0.0","webidl-conversions":"^7.0.0","whatwg-url":"^11.0.0","sparse-bitfield":"^3.0.3","web-streams-polyfill":"^3.2.1"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["easy-mongodb","mongodb","easy"],"author":{"name":"boateo6"},"license":"ISC","_id":"@boateo6/easy-mongo@1.0.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-/R1nlVQxmWEJPzaOXmQ0NCT495MhWCpc0LRip/esyF6EGGlbDw7/4lassO3bD6tRHIDFnT74VWlrfkDmYzgP2g==","shasum":"3e583e91b2bfca70e1006c2b9e75c1d0d85ca9d6","tarball":"https://registry.npmjs.org/@boateo6/easy-mongo/-/easy-mongo-1.0.0.tgz","fileCount":10,"unpackedSize":14112,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAgACw+xk+6TPJt7LFyoTcwQeCTksK8hryMACErSyYxDAiEAk9EpoUPq8QZ9LQKQAxvYBoegu4+3+GmFO/MVbqemgSY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkU6mvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4VBAAiwO/6MMcVSmRstGzo5BU7hvEcfXedqJg6U2SrAoDnJ62B54L\r\npC+VFoyG2svg3QZ+9Bjbzvfvr9/igq50Wk7a9yXb4wgtpLbiVNXP3IiuzOpF\r\njfm9hWZXimqD+m/iwnzSEk4iC4+FJQR4SzMLLZb8/QWJ+KlrBU7pqGqfRo+b\r\nSOFeAL6iclUAp1VIyR7dX80Qea1kQVmKTF3Dg8sc7nubaxzIXmkDd29c6TOi\r\nB94XNqhnDEr+EgptxKZdGcIqdXwbGcj89tFy0z4Xvy59X2/6RUgYRmT8BiyR\r\n3OPnobtEN3wIIGwJPK387iSbeIYs/q2PfmJYHe3gQLHkjG36gseeJ/GshRMN\r\n+xsI+VZ8kRTvgbXO23lvW+UZTP5uO4h0wNskco41FIoqoW1HolN+5jwPi/th\r\nLF+PrKacVD9+ArApAo0/06GnapnWHk89DtdO6tsMZseT/dR05RfeFrUVV+yH\r\nfOB4IJQsKVIvAJvLFAT/hyY3vhE7DG0b086tMaJ2HfzOaAW7XGxFlciY6XYx\r\nOgwCDyNq5slQb1dfKZlz/ot68JjKu4wpwcMTn/b1WcLQWINs+O6jaKVILwE3\r\niULh1Q0nHkf+IpO8fUz6R6B0SkrBjJcUoHr6KT+G3DmehShGPormMXMOsook\r\n2Y2ryHM6KubJxApgheN9N+/tWzGdF6ifYh0=\r\n=LgcB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"boateo6","email":"boateo6Business@gmail.com"},"directories":{},"maintainers":[{"name":"boateo6","email":"boateo6Business@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-mongo_1.0.0_1683204526959_0.07478485811277102"},"_hasShrinkwrap":false},"1.1.0":{"name":"@boateo6/easy-mongo","version":"1.1.0","description":"Easy way to use mongodb!","main":"index.js","dependencies":{"axios":"^0.26.1","asynckit":"^0.4.0","bson":"^5.2.0","combined-stream":"^1.0.8","data-uri-to-buffer":"^4.0.0","delayed-stream":"^1.0.0","fetch-blob":"^3.1.5","follow-redirects":"^1.15.2","ip":"^2.0.0","formdata-polyfill":"^4.0.10","memory-pager":"^1.5.0","mime-types":"^2.1.35","mime-db":"^1.52.0","mongodb":"^5.3.0","mongodb-connection-string-url":"^2.6.0","node-domexception":"^1.0.0","node-fetch":"^3.3.0","openai":"^3.2.1","punycode":"^2.3.0","saslprep":"^1.0.3","form-data":"^4.0.0","smart-buffer":"^4.2.0","socks":"^2.7.1","tr46":"^3.0.0","webidl-conversions":"^7.0.0","whatwg-url":"^11.0.0","sparse-bitfield":"^3.0.3","web-streams-polyfill":"^3.2.1"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["easy-mongodb","mongodb","easy"],"author":{"name":"boateo6"},"license":"ISC","_id":"@boateo6/easy-mongo@1.1.0","_nodeVersion":"20.2.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-hKE0Vy+Zk6Mz7U6bEp78sVl9oFJD6HDeqH/70qhA6kKWtFudHbsxBuk0FiRs7WQ3SoTCK9xuaTK13nSaQszaRg==","shasum":"d308a6b31b574e91223b75c0bd6160cbeaaa7582","tarball":"https://registry.npmjs.org/@boateo6/easy-mongo/-/easy-mongo-1.1.0.tgz","fileCount":3,"unpackedSize":6252,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8gsbpPdh1x1/dNCIvXuSOa0bkUWA0nySo3si3bYRELwIhAL44gYLf7NIdiTRxjsqZQ/lNoLhocndYMM2LocAgk/qW"}]},"_npmUser":{"name":"boateo6","email":"boateo6Business@gmail.com"},"directories":{},"maintainers":[{"name":"boateo6","email":"boateo6Business@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-mongo_1.1.0_1706182274141_0.7757823881087249"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-04T12:48:46.901Z","1.0.0":"2023-05-04T12:48:47.123Z","modified":"2024-01-25T11:31:14.497Z","1.1.0":"2024-01-25T11:31:14.352Z"},"maintainers":[{"name":"boateo6","email":"boateo6Business@gmail.com"}],"description":"Easy way to use mongodb!","keywords":["easy-mongodb","mongodb","easy"],"author":{"name":"boateo6"},"license":"ISC","readme":"# Announcement\n> There is no announcements yet...\n\n# Update\n> There is not update information yet...\n\n# Getting Started\n\n## Require:\n- Require parts of the package by the following line.\n``` javascript\nconst { Config, Completion, Image, Output } = require(\"@boateo6/easy-chatgpt\")\n```\n\n## Configuration:\n- Make a configuration by the following.\n  - Replace \"**YOUR_OPENAI_APIKEY**\" with the OpenAI APIKey that you can generate form [here](https://platform.openai.com/account/api-keys)!\n``` javascript\nconst config = new Config()\nconfig.setApiKey(\"YOUR_OPENAI_APIKEY\")\n```\n\n# Usage\n\n## Completion:\n- To make a completion do the following...\n``` javacript\nconst data = new Completion()\ndata.setModel(\"text-davinci-003\")\ndata.setPrompt(\"Hello (Give a reply)\")\ndata.setMaxTokens(1024)\ndata.setN(1)\ndata.setStop(null)\ndata.setTemp(0.7)\n```\n- To get an output from this do the add the following after the above code...\n  - \"**config**\" here is the configuration you created before.\n  - \"**data**\" here is the data from the completion you created above.\n  - \"**output.run()**\" here will make the program run to get an output form all the above.\n- Here is the code:\n``` javascript\nconst output = new Output(config, data)\noutput.run().then(response => {\n  // Do something with the response you got\n}).catch(error => {\n  // Handle the error\n})\n```\n### Full Code:\n``` javascript\nconst data = new Completion()\ndata.setModel(\"text-davinci-003\")\ndata.setPrompt(\"Hello (Give a reply)\")\ndata.setMaxTokens(1024)\ndata.setN(1)\ndata.setStop(null)\ndata.setTemp(0.7)\n\nconst output = new Output(config, data)\noutput.run().then(response => {\n  // Do something with the response you got\n}).catch(error => {\n  // Handle the error\n})\n```\n\n## Image Generation:\n- To make data for the generation of the image you want do the following...\n``` javascript\nconst data = new Image()\ndata.setPrompt(\"A waterfall with fog\")\ndata.setN(1)\ndata.setSize(\"1024x1024\")\ndata.setResponseFormat(\"url\")\n```\n- To get an output from this we do the same...\n``` javascript\nconst output = new Output(config, data)\noutput.run().then(image_url => {\n  // Do something with the image url/file you get\n}).catch(error => {\n  // Handle the error\n})\n```\n### Full Code:\n``` javascript\nconst data = new Image()\ndata.setPrompt(\"A waterfall with fog\")\ndata.setN(1)\ndata.setSize(\"1024x1024\")\ndata.setResponseFormat(\"url\")\n\nconst output = new Output(config, data)\noutput.run().then(image_url => {\n  // Do something with the image url/file you get\n}).catch(error => {\n  // Handle the error\n})\n```\n\n# Ending\n### Here we come to the end of this package's instructions.\n### For more help you can visit the [OpenAI docs](https://platform.openai.com/docs/introduction).\n### We will keep adding updates to this package in the future!","readmeFilename":"readme.md"}