{"_id":"@abku/d1","_rev":"2-6eacc695f9ac5e723b7a8e7e12e2c051","name":"@abku/d1","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@abku/d1","version":"1.0.0","description":"A package that allow you to connect with Cloudflare D1.","main":"index.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["Cloudflare","D1","Cloudflare-D1","SQL","Database"],"author":{"name":"abkux"},"license":"MIT","gitHead":"b229a9166e9fbecf51534e85997d49e3a1a6487a","_id":"@abku/d1@1.0.0","_nodeVersion":"18.18.2","_npmVersion":"9.7.2","dist":{"integrity":"sha512-RWb9ipJLKnELvLLOH5kVU5fojMSDtdNL/bpCom92vn/s1y4uMFRAZ6sz/Cxl4Vh8qaAcP3O3pxnYcjMwdezLwQ==","shasum":"ecb25a1c686df747e37397ff17fab4040e1aeb59","tarball":"https://registry.npmjs.org/@abku/d1/-/d1-1.0.0.tgz","fileCount":3,"unpackedSize":4232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8UqkQkFAycibQ5weMzD68pi5IIg5ytA1ZkypXIg6gIAiAAxR1oPxssOR+F3thuXyDmYlcjgpJzlB9bYlsq3q/1Cw=="}]},"_npmUser":{"name":"abku","email":"abkux@proton.me"},"directories":{},"maintainers":[{"name":"abku","email":"abkux@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d1_1.0.0_1708446807681_0.137489514090271"},"_hasShrinkwrap":false},"1.0.1":{"name":"@abku/d1","version":"1.0.1","description":"A package that allow you to connect with Cloudflare D1.","main":"index.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["Cloudflare","D1","Cloudflare-D1","SQL","Database"],"author":{"name":"abkux"},"license":"MIT","dependencies":{"axios":"^1.6.7"},"gitHead":"76ebb58ebe608ba5ba1a40a0d4d5630c79b63d84","_id":"@abku/d1@1.0.1","_nodeVersion":"18.18.2","_npmVersion":"9.7.2","dist":{"integrity":"sha512-kxRrijiWlPPOCJn/4o02MYstsdk9wd8jj8mHOm4TU8QIVFkxbU47kXMHCjqjixwQ/uzvROwveIIgFePpQ+biNg==","shasum":"c705f4118ae1f6101139a2d0c073f475d085d8c0","tarball":"https://registry.npmjs.org/@abku/d1/-/d1-1.0.1.tgz","fileCount":3,"unpackedSize":4298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE09rci7Ju58ld3fc0kNOjARk6MQSJ/6ftkOmz9hIzPXAiAUljkmIcnWCoLafBaN32OZBD1+xHRbOFiF2XrDAbP2sA=="}]},"_npmUser":{"name":"abku","email":"abkux@proton.me"},"directories":{},"maintainers":[{"name":"abku","email":"abkux@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d1_1.0.1_1708447133828_0.7526853556519264"},"_hasShrinkwrap":false},"1.0.2":{"name":"@abku/d1","version":"1.0.2","description":"A package that allow you to connect with Cloudflare D1.","main":"index.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["Cloudflare","D1","Cloudflare-D1","SQL","Database"],"author":{"name":"abkux"},"license":"MIT","dependencies":{"axios":"^1.6.7"},"gitHead":"121c2ea666e480767c71bd64eb097af07891dba7","_id":"@abku/d1@1.0.2","_nodeVersion":"18.18.2","_npmVersion":"9.7.2","dist":{"integrity":"sha512-bp7mS0AwF1l1jluf1wa2P/sj8tP4EUywcQ6/9gf8pfOT/HUkJ8PEuXBiGLM6xuTlbwTOuY7aDkVLdbpiKJofkQ==","shasum":"a5531b8ea38a58df8d0ee51eecea4b7913627757","tarball":"https://registry.npmjs.org/@abku/d1/-/d1-1.0.2.tgz","fileCount":4,"unpackedSize":5039,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGB90JQEuMGEpFlt8gknYPu+cg/o+iP2EoLHzoXHX1KOAiA5eZfclusB4FBChOUEjK6XdkPqxA1jVfBkFP0ZwVenaQ=="}]},"_npmUser":{"name":"abku","email":"abkux@proton.me"},"directories":{},"maintainers":[{"name":"abku","email":"abkux@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d1_1.0.2_1708448747229_0.07819742005322805"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-20T16:33:27.565Z","1.0.0":"2024-02-20T16:33:27.836Z","modified":"2024-02-20T17:05:47.802Z","1.0.1":"2024-02-20T16:38:53.977Z","1.0.2":"2024-02-20T17:05:47.376Z"},"maintainers":[{"name":"abku","email":"abkux@proton.me"}],"description":"A package that allow you to connect with Cloudflare D1.","keywords":["Cloudflare","D1","Cloudflare-D1","SQL","Database"],"author":{"name":"abkux"},"license":"MIT","readme":"# @abku/d1\r\n\r\nA simple package that allows you to connect with Cloudflare D1 and run queries.\r\n\r\n### Usage\r\n```js\r\nimport { d1 } from \"@abku/d1\";\r\n\r\nconst d1 = new d1(account_id, token, database_id);\r\n\r\nasync main(){\r\n    const response = await d1.listDatabase();\r\n    console.log(response)\r\n}\r\n\r\nmain()\r\n```\r\n\r\n### Methods\r\n```js\r\nd1.query('SQL QUERY HERE');\r\n```\r\n\r\n```js\r\nd1.createDatabase('database-name');\r\n```\r\n\r\n```js\r\nd1.deleteDatabase('database-id');\r\n```\r\n\r\n```js\r\nd1.getDatabase('database-id');\r\n```\r\n\r\n```js\r\nd1.listDatabase();\r\n```\r\n\r\nPlease make sure you setup token. **[docs](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/)**.\r\n\r\nNeed Help? Join **[discord server](https://to.abku.dev/discord)**.","readmeFilename":"README.md"}