{"_id":"@blocky/cfx.js","_rev":"7-ae43d3555efa423c11832751c5f9cc46","name":"@blocky/cfx.js","dist-tags":{"latest":"1.1.4"},"versions":{"1.0.0":{"name":"@blocky/cfx.js","version":"1.0.0","description":"A simple wrapper for the FiveM/CFX HTTP API","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/blockba5her/cfx.js.git"},"author":{"name":"blocky"},"license":"MIT","private":false,"scripts":{"build":"tsc","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublishOnly":"npm run lint"},"devDependencies":{"@types/node":"^14.10.2","destiny":"^0.7.1","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.0.2"},"dependencies":{"axios":"^0.20.0"},"gitHead":"125826b1c196787ab7370b1240f7670fd61589a4","bugs":{"url":"https://github.com/blockba5her/cfx.js/issues"},"homepage":"https://github.com/blockba5her/cfx.js#readme","_id":"@blocky/cfx.js@1.0.0","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-VcYcvUzJb/YbvFMBm0JNVhC4Qi7TUnz7AVtvgsrSdhbHB93X7ePqzpy9xg22w+5mv4bLcw4Qj1i7PcOkb+r4dg==","shasum":"4967a1cda46af18f6a47c15b52d5f16b01b044a3","tarball":"https://registry.npmjs.org/@blocky/cfx.js/-/cfx.js-1.0.0.tgz","fileCount":19,"unpackedSize":25036,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYrXwCRA9TVsSAnZWagAA6dsQAJTPDx28Y3LA3pR+U5w/\n29JrbjT6H94KiSejOZCBA2esxU1axJdkUCvx+2uh+t2cYDLtu2Zs9bHpZLhm\nmiZAc0ajLD+ul2Rn0egCAmIKIn3MlOoUVs385UmbbltxGcMcSUDuuF7XVTMo\nkFYC222ndOva/PWuxmKeXc7ZguMjlUAelb+3McWYKGIAno6rGoX5fTm9OyPB\nUFrQPnOD/2KAZ/zZ1ZkaHjFAnE4i4Huwl7OwXskQDJKmiQC5rwrAeu66XpGI\nogLq9n7nXkva3mlMuywxtGB+W5DhD5FkeRL+qQxaz0vq6oicIHsAr7TZLqj6\ngrWvyNkb3RjmaJvvFlaNs3Se39KpeHFaoZc6elzSW8JgLf5WVQjkafhgvLQN\nIfXfD9BtxeNccPIcugZJGDe61htMydk8RJRzo+KEUV+jIJg5qJ0UMspCnq8x\nfhheZ2jjSy4ekVoHsQyWTJpHNVht+IzLw6aC/d4XkAscYUeqyXn8YFy1P4Dz\nLQe+fQcu9kMEEtFayBnSrl5lq7c+N5HozxqS27rE+rAIYLI/zafFXpPzu/kL\nqLl9KrkCww87PfNrGOD2sf3oPqbTNLGn0Vj+V8C99Jk8b8AQqT1xWAIzt9hY\n0SYLo/BAlpRcOq1U1ifNPM3pon0X+f84z/Deax/QeHaiaORoWRHMMbzfN5Pr\nZ7BL\r\n=Dihp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGVsLFEoW4yzQDVzF2ArsDSiaF2S9zhYYU9WxvINSgP+AiEA/MDh1ox9gPTI6f91T66g/oymQYyLuAgbqcFEpCvRhH8="}]},"maintainers":[{"name":"blocky","email":"blocckba5her@gmail.com"}],"_npmUser":{"name":"blocky","email":"blocckba5her@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cfx.js_1.0.0_1600304623675_0.8107554267215189"},"_hasShrinkwrap":false},"1.0.1":{"name":"@blocky/cfx.js","version":"1.0.1","description":"A simple wrapper for the FiveM/CFX HTTP API","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/blockba5her/cfx.js.git"},"author":{"name":"blocky"},"license":"MIT","private":false,"scripts":{"build":"tsc","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublishOnly":"npm run lint"},"devDependencies":{"@types/node":"^14.10.2","destiny":"^0.7.1","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.0.2"},"dependencies":{"axios":"^0.20.0"},"gitHead":"b0e30a57e07a5a7c183dc76fcad8109d0faee5d0","bugs":{"url":"https://github.com/blockba5her/cfx.js/issues"},"homepage":"https://github.com/blockba5her/cfx.js#readme","_id":"@blocky/cfx.js@1.0.1","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-LHeAEJSJsxgp/aR+rrDWYnyv4IAGeNolJ/3lIXpkwrsyez8jPZowhLI4pff35FmUKZygxRmVlAb5/uCXUvNZ1Q==","shasum":"50e7cc17b72bb3d9ebac5b330f854fba2a690501","tarball":"https://registry.npmjs.org/@blocky/cfx.js/-/cfx.js-1.0.1.tgz","fileCount":19,"unpackedSize":25793,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfY3mXCRA9TVsSAnZWagAAN+cP/jxr3VbKigY+btpNLlh8\n5hNQ5JikUu/7ES9NPRm17cvcTg9S1/x27293Co1kZT324rMdFz4mlOcbUFUc\nFWYXNcIGWcBZFDzD6JUDu+7+qV8Dr4f/hfZbc/9LQbkWsqqj6PT1QsuU42tI\ngRu/MokI2Hf6k1oTynPrCQ/w8+jumnVp9iaKpClnBSXXty0GCghumO/Lxq2Q\nCDbhORHaAbjDGvfTEeXkPLlG7J+QR13yD0ApVy2uK77QWJLosFObYu3e7YE8\nFsWPifK2uCZNrNcz+EQlHBZG+EyXVh5wXtm4G0Am4okFrYeptI3mLQGS/2Nr\n31DP8iZq/2vRA1jh794BAfjIeVwHbbAihWhR5VlMKTro/Wwg5lSUEIci1Yb7\n6WYvHnhfP55wav6VSVkGdVHHL42f8p7xcIEdJz6s4TqvJBqlMusg7CFWYQH9\n1eG/1Kk4l22LGnm5BYMBvA2a8+UYbbZPja+u4yEMWrn5M0Wtgsq1CGm6bf0L\nIrkxTlOBExQstKE4kUSsm6dQZQeCVFvwnH2k8Owso/MGlaY7f16VeE0G8d3d\npbb/bmRQl4fXzBcS9M8JmolZxllHtKQwMFRUgZq432YxoOB5vQpMXY6NY9d9\nYw0v3JGKG9BNL/IfUa5HCfauAu6t9zmNkCoirCEf7FCHT+yqNipNe6IXZdIS\no12e\r\n=qFy2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBc1vFyB/r1mjIRNsFNDGdNnWnOLC8wzsOoPAA4LXyieAiEA/VySG2T7fW/w4hLE2M0MMYO76XWZbcepFH2N/aibj/g="}]},"maintainers":[{"name":"blocky","email":"blocckba5her@gmail.com"}],"_npmUser":{"name":"blocky","email":"blocckba5her@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cfx.js_1.0.1_1600354711386_0.22838262950748334"},"_hasShrinkwrap":false},"1.1.0":{"name":"@blocky/cfx.js","version":"1.1.0","description":"A simple wrapper for the FiveM/CFX HTTP API","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/blockba5her/cfx.js.git"},"author":{"name":"blocky"},"license":"MIT","private":false,"scripts":{"build":"tsc","lint":"tslint -p tsconfig.json"},"devDependencies":{"@types/node":"^14.10.2","destiny":"^0.7.1","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.0.2"},"dependencies":{"axios":"^0.20.0"},"bugs":{"url":"https://github.com/blockba5her/cfx.js/issues"},"homepage":"https://github.com/blockba5her/cfx.js#readme","_id":"@blocky/cfx.js@1.1.0","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-aLYnzjtBFS3v8XnT1ETjjhgXdCtaZVT4n6APWHnK3FDSz+ZQVrL2tPX8fKMt7mYycXnBVcgU34FZ8hHpIoHMBg==","shasum":"ab27d394467d835a311ce7a5bd6899219bb27386","tarball":"https://registry.npmjs.org/@blocky/cfx.js/-/cfx.js-1.1.0.tgz","fileCount":18,"unpackedSize":24277,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfeL0YCRA9TVsSAnZWagAAXD0P/jRyNEfxjpGn5IiruNeO\n/jBVeb3lR7kTVmojyzQcyALGwOtjBuzi+uRAklbunk6buDti7RKIxcB4lJ0s\nuUQen5EV+1d5hnrCaZLMPTq3KuquRczM/0/5bmN2jg40ctjj7XBwKXKvpFN6\nj2ekSmDyqR45Xp6xlshp2c464HmvH5A5DmDCs3B827HsTwjA1qcSosTl6ZTz\n90DjhGLuZeUUiVlbXFvDRemM6IINFFLT5vjMOudQOGujErt8b/aIEQbpCzEf\nLsFeVDeIrL8d3OnJegjoIht3QL7uczJButKgA8O4kWCe86UitdRY2+0vqbCv\n+1T2ap25Z8Ph3mR41GWsxjRNC3IPGLn2fV7aLOiXxBgG3Tbxuh28WTYgueos\nWw4uIyuyFC42QHtUI8Fv/kBQ1uXZq5CeytdQJB4C2npbIeJ6n5+af6KUkPUi\nXQH0dw8flQwc9EUbOO7lIMKLQR673UH4hosMXZrM8GOVCwUsH9QAlVDsVH1i\nOEhDx1SFXB3JNa/ciDnwP+zE+2241Cogz0LShssI1YH7T7O7EyzCzU85DEeL\n+bE2m0WrYC2S2yMHYW/eop2vxQ15aSidHibFt6+J8ROA3gGo/enenh55X8sq\nfTZkSe2xcmfPMYZVDqzT38GFdKGTlIlR9x0VsA/K8zH7aIEnBUjHczTtdzPL\nPrYu\r\n=wn47\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHrs81WynS7may/IQMjuFK4vchqisJZSO42XXgLPvsWvAiEApY30491dBJmYN958/gwhtuIJaz0AVY1ZHWBjIaT0fl8="}]},"maintainers":[{"name":"blocky","email":"blocckba5her@gmail.com"}],"_npmUser":{"name":"blocky","email":"blocckba5her@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cfx.js_1.1.0_1601748247679_0.6146066013404219"},"_hasShrinkwrap":false},"1.1.1":{"name":"@blocky/cfx.js","version":"1.1.1","description":"A simple wrapper for the FiveM/CFX HTTP API","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/blockba5her/cfx.js.git"},"author":{"name":"blocky"},"license":"MIT","private":false,"scripts":{"build":"tsc","lint":"tslint -p tsconfig.json"},"devDependencies":{"@types/node":"^14.10.2","destiny":"^0.7.1","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.0.2"},"dependencies":{"axios":"^0.20.0"},"bugs":{"url":"https://github.com/blockba5her/cfx.js/issues"},"homepage":"https://github.com/blockba5her/cfx.js#readme","_id":"@blocky/cfx.js@1.1.1","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rd6ql2MRHIHULNz86f/bFEA1I9rMhv6Wdsv1wYy3Fp+1kd4+F5Y3tKZ7xiJw0MH7UTL3tuTbAJy+W+TZsnTivQ==","shasum":"8612060408714c4196191b9a1fb2ccff093c99d0","tarball":"https://registry.npmjs.org/@blocky/cfx.js/-/cfx.js-1.1.1.tgz","fileCount":18,"unpackedSize":24277,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgUTiCRA9TVsSAnZWagAApzUP/0pAjHW2/99RA6PLTte7\nJUdIsEW1+w/0XCMJuo7eCrGzjixxvgbeaiTqBsq8gLiiOk7yQIGmDcZPP+ur\ntOgiQEuKCJM+VpLOTAxUp2La768uPCsTq+Oi85NvseknxNBZxK9SVFxXVZH4\nZP7kkPVc9L6TL0PLGz2sJEKFT5OgT95at0zBXnWl4g6+u6tx/jWUxWUthjOu\nwTmCjG2AgYfzWZNZTLRS+i2xAyMflLkEG59x6RFY7c9wFjZBYVZ2sN8uWfVr\n5wLOMSHt3BKRtXgdVD3LWKVy6S2P8ZxqxHsJ/Iul8S32tvILHK9gtjK1TqUU\nE+vBIsonpd1ESnES0raN+jVE5HmusFyITI9Sm3I7JvZJWCtVhxsRkVwPwp06\n//pa815hPQfZ88ZfQExt0+ywYy/NU7UhN+FNKmM0SNSghlUtN3VQMQ2q0ftT\noHG4WpEoH4rsbX2BhaA4RtOpuYxJNp3MUiELFg4Y5a4qsVEBsddbovoh/E3M\nYSJMfTRo+wM5aNnNXJ/bfaTCQhTg8b9cX9fgl5ZWBhcKcce5W3PZS/V0mZdG\nvTTCrQMZ/wwQqCk63bLSgEweOPO6OEqmtYTBzyB/9zFiAxhF5XxjeshG/088\nA3fzmTMq2mCIDPJRzI1J8TtuyI2sogIP2UZH45EKvZu7N/6B2Wxr5Kl+uNhI\nE9AL\r\n=T5P/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDI7qL9EBRyYCegBPc/B0VCxOAYOlFfOS9nUjO+abzqEAiA4V/tl0Vf++MHpa59SV4z+CVjE4RiO949yrOud+DDxeA=="}]},"maintainers":[{"name":"blocky","email":"blocckba5her@gmail.com"}],"_npmUser":{"name":"blocky","email":"blocckba5her@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cfx.js_1.1.1_1602307297691_0.15069742090578941"},"_hasShrinkwrap":false},"1.1.4":{"name":"@blocky/cfx.js","version":"1.1.4","description":"A simple wrapper for the FiveM/CFX HTTP API","main":"lib/index.js","repository":{"type":"git","url":"https://github.com/blockba5her/cfx.js"},"author":{"name":"blocky"},"license":"MIT","private":false,"scripts":{"build":"tsc","lint":"tslint -p tsconfig.json"},"devDependencies":{"@types/node":"^14.14.30","destiny":"^0.7.1","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.1.5"},"dependencies":{"axios":"^0.21.1"},"publishConfig":{"registry":"https://registry.npmjs.org","access":"public"},"licenseText":"Copyright 2020 Jacob Parker\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@blocky/cfx.js@1.1.4","dist":{"shasum":"a4905dae64a1f532c77904e6ab72e4c4dc42cea3","integrity":"sha512-evUSGHN9Zy/0x34aescvKxWWw2zxUUdI5iTHa8ydkEhkLZamGCy+J3pNos094tUoABrzS+fm33a1zT7MNOoctg==","tarball":"https://registry.npmjs.org/@blocky/cfx.js/-/cfx.js-1.1.4.tgz","fileCount":24,"unpackedSize":25840,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgM0pvCRA9TVsSAnZWagAAe0wP/ihvvqR1DiOkihXdQOAa\n4g83SitiMNititER/OAjpZklGkyDxlvuK0WyRFocc6xZeJ2+Xf/MeK9SN19v\nzaNV3Q0BSJPswySZLZHfl2U6P7F+LL6RnEDdYANehFxz4ZVUZZ8jI3JK5UBR\nFI5TXmfL76R0XxM2jSLcsS5FL3LXGXuxSrWSa4k1pQYyBo++3a0XTW3DoX+W\nittsKJ9L3d9jVfYMsbotmU6N2IF0BsQ6CmVDREsKODDWwg+xJdkEFq2+aavi\n4i0OL53AmXkl7ER+EuU1kWiPVEwvD5jkc7ud2xHTwl1Wi0B+3WgU3jaGbwD4\nuu3JXgsTT8It4rPpNyaNKAAmWAphLbyF+J0OU3fOJtd9gGoSzSmPE3tI6K57\nuYADa/+mxll4fG028JDKKf2TKCrwckXiM4tTGBooIxFiE0G+RepKja4T8GFW\nx9dxNvuP4RXjEqmp38BIxpATvcwfiShpeQ2K61/ANvte4ZHsv/GoGf01jboA\nzMnLe6DRCQ0MRe53PjIunrbteAKueMqOBHYAdwXaLXHXUE2Qd2PTNPR6tW5j\ned+1WwJqku+U81rNzsP7kWAZcTATMIsFhI2adpiPo8uSlCrXB/VD1AhnVGmR\nJjbs5UJ9BPsutVr5FBPTT4Jpu091sQS9aOazB7QCUP++RkUgcKQu5l53eo7b\nnnYV\r\n=9vS5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQhU4Ihp0bF9XcKlh6Gs8cMjS43sw3hpVaHIn34ry+wAiAXGPXdo1z/XmyaB37P9FN0/R6yf8Lb8j9/hBLDxfEKKw=="}]},"_npmUser":{"name":"blocky","email":"blocckba5her@gmail.com"},"directories":{},"maintainers":[{"name":"blocky","email":"blocckba5her@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cfx.js_1.1.4_1613974126804_0.6625840216802699"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-17T01:03:43.640Z","1.0.0":"2020-09-17T01:03:43.809Z","modified":"2022-04-04T19:39:52.901Z","1.0.1":"2020-09-17T14:58:31.483Z","1.1.0":"2020-10-03T18:04:07.821Z","1.1.1":"2020-10-10T05:21:37.854Z","1.1.3":"2021-02-22T06:02:05.614Z","1.1.4":"2021-02-22T06:08:46.995Z"},"maintainers":[{"name":"blocky","email":"blocckba5her@gmail.com"}],"description":"A simple wrapper for the FiveM/CFX HTTP API","repository":{"type":"git","url":"https://github.com/blockba5her/cfx.js"},"author":{"name":"blocky"},"license":"MIT","readme":"# CFX.JS\n\nA simple NodeJS wrapper for the [cfx.re](https://github.com/citizenfx/fivem) project.\n\n## What does this do?\n\nCurrently this just supports `GET` requesting URLs on the FiveM server. But this also comes with nice type definitions for some files (`/info.json`, `/dynamic.json`) with the ability to support more.\n\n## How to use it?\n\nThe API is made to be used simply. Here is a basic example:\n\n```js\n// use `.default` for type definitions\nconst cfx = require('@blocky/cfx.js').default;\n\n(async () => {\n    let server = cfx('http://localhost:3000');\n    let serverInfo = await server.getInfo();\n\n    console.log(serverInfo.artifactVersion);\n})();\n```\n\nYou can also use it to get custom endpoints set by resources:\n\n```js\n// use `.default` for type definitions\nconst cfx = require('@blocky/cfx.js').default;\n\n(async () => {\n    let server = cfx('http://localhost:3000');\n    let resData = await server.getPath('/my_resource');\n\n    let { myData } = resData;\n})();\n```\n\n## Contributors\n\n-   [blockba5her](https://github.com/blockba5her)\n\n## License\n\nThis project is maintained under the MIT license. More info can be viewed under `LICENSE`\n","readmeFilename":"README.md"}