{"_id":"@aitox/supabase","name":"@aitox/supabase","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aitox/supabase","version":"1.0.0","description":"Package to connect a supabase client.","main":"index.js","private":false,"scripts":{"publish":"npm publish --access public","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/anthonyissa/utils.git#main"},"keywords":[],"author":{"name":"Anthony ISSA"},"license":"ISC","homepage":"https://github.com/anthonyissa/utils/tree/main/supabase","devDependencies":{"jest":"^29.5.0"},"dependencies":{"@supabase/supabase-js":"^2.21.0","dotenv":"^16.0.3"},"gitHead":"cc95cc9bf4ecc843cfbfc6744bbde1c481af90f8","bugs":{"url":"https://github.com/anthonyissa/utils/issues"},"_id":"@aitox/supabase@1.0.0","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-Ox8bsslwDa2Nip2Ksdo9zDmjyzxYtUnfynQDIUzHg5KYrqHZ/xI3W2Dq3gyQF0va8Uy0nKKRKfGX6wKPFCVXaQ==","shasum":"efd4e6c088e040679ca1a5c9fc04e3c1ea653ff2","tarball":"https://registry.npmjs.org/@aitox/supabase/-/supabase-1.0.0.tgz","fileCount":4,"unpackedSize":1921,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICyd/Xf1jxAlEAQqbs5KCO3OjnaII8nhDI04/px9Y6ecAiEAgvrDGP1galmhadSKyhkFWOBLIvt/5yBt01tjJcEIInY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSkBcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrspw//fzMWyDryd/v4BId9GtKdgean48JPIsysCBAXA01XPEg8dWBx\r\noLcUH+flRND1Z/1hxdaf6YwsEA+lvDY8DRkhGA1hT988dGbCpFFkhn5jt8wX\r\nGYnF+Iy5c471tNY8YasW3GdTPswX+OasW5Q8+Vxw0XmgD4b0etQ03bFYb0L+\r\n+6//po6Y2Ik8G73RaVqZUoPS2WuaH8e6Dn7NJS86XYQSsm2YzHUNxVPCDkGG\r\nOTNTSdtpjVmfKpnkwPs/bqNghFEMVuFZSJHNugnQsS4HztaUEei8wbYOWoJ0\r\nRUhayUdYu7tN7XW/TU9Ht2Sb3k6jnrSp1Te3PbMjJG9r+ZZ+lldC5qQYEJgb\r\nk6m6TpQidbMGjWAZga73e4Q6OqIU/Ksyt30WhwfG7d8FqiFD4iScELUJ7oyx\r\n9ncL8CoUwSu2Ajda/oJDShounJcnXj0tXQzG5CEla6WhkT+Wmz3Dd/OfRd/V\r\nRWH17J5ijSu/T7kw1H4FDm3ixX47vN1Hck2oQ9/9flHTbWr87xVFioVxraf3\r\nAgLIAsEOGonVEqoLxToii+1zAxa0Kleo1e+yDKNguZvGMcOVpVACivN23FdU\r\nzTWiFwX8w4vrsy/j9iWVdhAprn4jkPF5o5qMwz5SShiT2LGmKadqPq2Gc4sB\r\n4LDB/mCz4YeSJgorR2p9pEQoAtDrMOY1zeU=\r\n=jeyi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aitox","email":"anthony.issa@hotmail.fr"},"directories":{},"maintainers":[{"name":"aitox","email":"anthony.issa@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/supabase_1.0.0_1682587740378_0.5770208979174449"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-27T09:29:00.305Z","1.0.0":"2023-04-27T09:29:00.519Z","modified":"2023-04-27T09:29:00.674Z"},"maintainers":[{"name":"aitox","email":"anthony.issa@hotmail.fr"}],"description":"Package to connect a supabase client.","homepage":"https://github.com/anthonyissa/utils/tree/main/supabase","keywords":[],"repository":{"type":"git","url":"git+https://github.com/anthonyissa/utils.git#main"},"author":{"name":"Anthony ISSA"},"bugs":{"url":"https://github.com/anthonyissa/utils/issues"},"license":"ISC","readme":"# Supabase\r\n\r\nA simple package to connect and initialize a Supabase client.\r\n\r\n## Installation\r\n\r\n```Bash\r\nnpm i @aitox/supabase\r\n```\r\n\r\n## Usage\r\n\r\nMake sure to set the following environment variables in your .env file:\r\n\r\n```Java\r\nSUPABASE_URL=<YOUR_SUPABASE_URL>\r\nSUPABASE_KEY=<YOUR_SUPABASE_KEY>\r\n```\r\n\r\nHere is an example to call your supabase database using the client.\r\n\r\n```Javascript\r\nconst supabase = require(\"@aitox/supabase\");\r\n\r\n(async () => {\r\n  const { data, error } = await supabase.from(\"users\").select(\"*\").limit(1);\r\n  if (error) {\r\n    console.error(\"Error fetching data:\", error);\r\n  } else {\r\n    console.log(\"Data:\", data);\r\n  }\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nContributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or a pull request.\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License. See the LICENSE file for more information.\r\n","readmeFilename":"README.md"}