JavaScript library to interact with the Cfx.re API (FiveM/RedM)

Overview

Cfx.re JavaScript API

A package that helps you interacting with the Cfx.re, FiveM & RedM API.


How to install

npm i cfx-api

Example usage:

const cfx = require("cfx-api");

(async () => {
  // Retrieve a CitizenFX server (could be a FiveM or a RedM server)
  const server = await cfx.fetchServer("qrbm5v") // Replace "qrpm7v" with a server id
  console.log(`Server: ${server.hostname} has ${server.players.length} players online`);

  // Retrieve Cfx.re status
  const status = await cfx.fetchStatus()
  console.log(status.everythingOk ? "All Cfx.re systems are operational" : "Cfx.re is experiencing issues");

  // And get status of all individual components
  const components = await status.fetchComponents()
  for (let component of components)
    console.log(`${component.name}: ${component.status}`);
})();
Comments
  • Error: AxiosError: Request failed with status code 403

    Error: AxiosError: Request failed with status code 403

    Trying to make a discord bot. keep getting this error. code and error are down below

    Any help in fixing this would be very much appreciated <3

    Error: AxiosError: Request failed with status code 403 TypeError: Cannot read properties of undefined (reading 'gameType')

    const { EmbedBuilder, SlashCommandBuilder } = require('discord.js')
    const cfx_api = require('cfx-api');
    
    module.exports = {
      data: new SlashCommandBuilder()
        .setName('cfxinfo')
        .setDescription('pong!'),
    
      async execute(client, interaction,) {
        const cfx = await cfx_api.fetchServer(process.env.id);
    
        
        const Embed = new EmbedBuilder()
              .setTitle('Server Information')
              .addFields(
                {name: 'Gametype', value: `${cfx.gameType}`, inline: true},
                {name: 'Map', value: `${cfx.mapname}`, inline: true},
                {name: 'Owner', value: `[${cfx.ownerName}](${cfx.ownerProfileUrl})`, inline: true},
                {name: 'Player\'s', value: `${cfx.playersCountFromServerReport}`, inline: true},
                {name: 'UpVote', value: `${cfx.upvotePower}`, inline: true},
                {name: 'OneSync', value: `${cfx.isOneSyncEnabled}`, inline: true},
                {name: 'Server Full', value: `${cfx.isFull}`, inline: true},
                {name: 'Private', value: `${cfx.private ? 'Private' : 'Public'}`, inline: true},
              )
    
              interaction.reply({ embeds: [Embed]});
      }
    }
    
    opened by itsRVX 12
  • Error

    Error

    Its Saying undefined reading error in client at(node_module/cfx-api/src/model/CitizenServer.js) Line 38 ```/** *

    • Get the number of connected players
    • @type {number} Number of players
    • @readonly */ get playersCount() { return this.data['clients']; }```
    bug question 
    opened by swastik-mohanty 6
  • Facing issues

    Facing issues

    
    const cfx = require('cfx-api');
    const { ActivityType, EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Webhook } = require('discord.js');
    const { set } = require('lodash');
    const FiveMStatusSchema = require("../../Models/FiveMstatus")
    
    module.exports = new Object({
        name: "ready",
        once: true,
        /**
         * @param {import("../../Base/Apera")} client 
         */
        async execute(client, message, guild) {
            client.console.log(`FiveM Server Status Ready`, "fivem"); 
            
       setInterval(function() {
        const guildids = client.guilds.cache.map((r) => r.id)
        guildids.forEach(async guildID  => {
          const guildm = await client.guilds.cache.get(guildID)
          let data = await FiveMStatusSchema.findOne({ 
            guildId: await guildm.id
        })
        const liveServerStatus = async () =>
      {
            
          try {
            console.log(data?.FiveMID)
            var FiveMServerID = data?.FiveMID
            var FiveMChannelID = data?.channelId
            var FiveMMessageID = data?.mssgId
            var liveStatus = await cfx.fetchStatus()
            var liveServer = await cfx.fetchServer(FiveMServerID)
            const Button3 = new ActionRowBuilder()
                    .addComponents(
                        new ButtonBuilder()
                            .setLabel('Connect to Live Server')
                            .setStyle(ButtonStyle.Link)
                            .setURL(`https://cfx.re/join/${FiveMServerID}`),
                     
                    );
            if (FiveMChannelID !== '')
            {
                const liveChannelName = client.channels.cache.find(channel => channel.id == (FiveMChannelID))
                if (FiveMMessageID !== '') 
                {
    
                
                    if (liveServer !== undefined)
                    {
                        liveChannelName?.messages.fetch(FiveMMessageID).then((message) =>
                        {
                            
                            const liveStatusMessage = new EmbedBuilder()
                            .setThumbnail(client.ThumnailImage)
                            .setColor('#a082ff')
                            .addFields(
                                { name: '• Server Status •', value: 'Online ✅', inline: true },
                                { name: '• CFX Status •', value: liveStatus?.everythingOk ? "Online ✅" : "Issues ❗", inline: true },
                                { name: '• Conected Players •', value: `${liveServer?.playersCount} / ${liveServer?.maxPlayers}`, inline: true },
                            )
                            .setFooter({ text: 'IERP Server Last update: ', iconURL: client.FooterImage })
                            .setTimestamp()
                            message.edit({ embeds: [liveStatusMessage], components: [Button3] });
                            console.log(`1st Check Done`)
                        })
                        
                        
                    }
                    else
                    {
                        liveChannelName?.messages.fetch(FiveMMessageID).then((message) =>
                        {
                            try {
                                const liveStatusMessage = new EmbedBuilder()
                                .setThumbnail('https://media.discordapp.net/attachments/895571838049083422/1003915341568675861/ezgif.com-gif-maker.gif')
                                .setColor('#a082ff')
                                .addFields(
                                    { name: '• Server Status •', value: 'Offline ❌', inline: true },
                                    { name: '• Conected Players •', value: `0/0`, inline: true },
                                    { name: 'Player Information', value: `None to Display`, inline: false },
                                )
                                //.setFooter({ text: 'IERP Server Last update: ', iconURL: client.FooterImage })
                                .setTimestamp()
                            message.edit({ embeds: [liveStatusMessage] });
                            console.log(`2st Check Done`)
                            } catch (error) {
                                
                            }
                        })
                    }
                    setTimeout(liveServerStatus, 1000 * parseInt(120, 10))
                } else 
                {
                    return;
    
                }
            }
            else
            {
                console.log('Please fill in the .env file, you need to define : FiveMChannelID', 'error')
                console.log(`3st Check Done`)
                return
            
        }
          } catch (error) {
            
          }
        
    }
    
    liveServerStatus()
    
    
    }) 
       }, 1000)
       
      }
    })
    
    
    
    opened by swastik-mohanty 3
  • ⬆️ Bump eslint from 8.21.0 to 8.23.0

    ⬆️ Bump eslint from 8.21.0 to 8.23.0

    Bumps eslint from 8.21.0 to 8.23.0.

    Release notes

    Sourced from eslint's releases.

    v8.23.0

    Features

    • 3e5839e feat: Enable eslint.config.js lookup from CLI (#16235) (Nicholas C. Zakas)
    • 30b1a2d feat: add allowEmptyCase option to no-fallthrough rule (#15887) (Amaresh S M)
    • 43f03aa feat: no-warning-comments support comments with decoration (#16120) (Lachlan Hunt)

    Documentation

    • b1918da docs: package.json conventions (#16206) (Patrick McElhaney)
    • 0e03c33 docs: remove word immediately (#16217) (Strek)
    • c6790db docs: add anchor link for "migrating from jscs" (#16207) (Percy Ma)
    • 7137344 docs: auto-generation edit link (#16213) (Percy Ma)

    Chores

    v8.22.0

    Features

    • 2b97607 feat: Implement caching for FlatESLint (#16190) (Nicholas C. Zakas)
    • fd5d3d3 feat: add methodsIgnorePattern option to object-shorthand rule (#16185) (Milos Djermanovic)

    Documentation

    • 9f5a752 docs: optimize image assets (#16170) (Sam Chen)
    • 61b2948 docs: add svgo command to pre commit hook (#16178) (Amaresh S M)
    • 784096d docs: improve search result UI (#16187) (Sam Chen)
    • d0f4cb4 docs: use shorthand property name in example (#16180) (Kevin Elliott)

    Chores

    • 10a6e0e chore: remove deploy workflow for playground (#16186) (Milos Djermanovic)
    Changelog

    Sourced from eslint's changelog.

    v8.23.0 - August 26, 2022

    • 2e004ab chore: upgrade @​eslint/eslintrc@​1.3.1 (#16249) (Milos Djermanovic)
    • d35fbbe chore: Upgrade to [email protected] (#16243) (Milos Djermanovic)
    • 3e5839e feat: Enable eslint.config.js lookup from CLI (#16235) (Nicholas C. Zakas)
    • 30b1a2d feat: add allowEmptyCase option to no-fallthrough rule (#15887) (Amaresh S M)
    • ed26229 test: add no-extra-parens tests with rest properties (#16236) (Milos Djermanovic)
    • deaf69f chore: fix off-by-one min-width: 1023px media queries (#15974) (Milos Djermanovic)
    • 63dec9f refactor: simplify parseListConfig (#16241) (Milos Djermanovic)
    • 43f03aa feat: no-warning-comments support comments with decoration (#16120) (Lachlan Hunt)
    • b1918da docs: package.json conventions (#16206) (Patrick McElhaney)
    • 0e03c33 docs: remove word immediately (#16217) (Strek)
    • c6790db docs: add anchor link for "migrating from jscs" (#16207) (Percy Ma)
    • 7137344 docs: auto-generation edit link (#16213) (Percy Ma)

    v8.22.0 - August 13, 2022

    • 2b97607 feat: Implement caching for FlatESLint (#16190) (Nicholas C. Zakas)
    • fd5d3d3 feat: add methodsIgnorePattern option to object-shorthand rule (#16185) (Milos Djermanovic)
    • 9f5a752 docs: optimize image assets (#16170) (Sam Chen)
    • 61b2948 docs: add svgo command to pre commit hook (#16178) (Amaresh S M)
    • 784096d docs: improve search result UI (#16187) (Sam Chen)
    • d0f4cb4 docs: use shorthand property name in example (#16180) (Kevin Elliott)
    • 10a6e0e chore: remove deploy workflow for playground (#16186) (Milos Djermanovic)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • ⬆️ Bump eslint from 8.21.0 to 8.22.0

    ⬆️ Bump eslint from 8.21.0 to 8.22.0

    Bumps eslint from 8.21.0 to 8.22.0.

    Release notes

    Sourced from eslint's releases.

    v8.22.0

    Features

    • 2b97607 feat: Implement caching for FlatESLint (#16190) (Nicholas C. Zakas)
    • fd5d3d3 feat: add methodsIgnorePattern option to object-shorthand rule (#16185) (Milos Djermanovic)

    Documentation

    • 9f5a752 docs: optimize image assets (#16170) (Sam Chen)
    • 61b2948 docs: add svgo command to pre commit hook (#16178) (Amaresh S M)
    • 784096d docs: improve search result UI (#16187) (Sam Chen)
    • d0f4cb4 docs: use shorthand property name in example (#16180) (Kevin Elliott)

    Chores

    • 10a6e0e chore: remove deploy workflow for playground (#16186) (Milos Djermanovic)
    Changelog

    Sourced from eslint's changelog.

    v8.22.0 - August 13, 2022

    • 2b97607 feat: Implement caching for FlatESLint (#16190) (Nicholas C. Zakas)
    • fd5d3d3 feat: add methodsIgnorePattern option to object-shorthand rule (#16185) (Milos Djermanovic)
    • 9f5a752 docs: optimize image assets (#16170) (Sam Chen)
    • 61b2948 docs: add svgo command to pre commit hook (#16178) (Amaresh S M)
    • 784096d docs: improve search result UI (#16187) (Sam Chen)
    • d0f4cb4 docs: use shorthand property name in example (#16180) (Kevin Elliott)
    • 10a6e0e chore: remove deploy workflow for playground (#16186) (Milos Djermanovic)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • ⬆️ Bump axios from 1.2.1 to 1.2.2

    ⬆️ Bump axios from 1.2.1 to 1.2.2

    Bumps axios from 1.2.1 to 1.2.2.

    Release notes

    Sourced from axios's releases.

    1.2.2

    [1.2.2] - 2022-12-29

    Fixed

    • fix(ci): fix release script inputs #5392
    • fix(ci): prerelease scipts #5377
    • fix(ci): release scripts #5376
    • fix(ci): typescript tests #5375
    • fix: Brotli decompression #5353
    • fix: add missing HttpStatusCode #5345

    Chores

    • chore(ci): set conventional-changelog header config #5406
    • chore(ci): fix automatic contributors resolving #5403
    • chore(ci): improved logging for the contributors list generator #5398
    • chore(ci): fix release action #5397
    • chore(ci): fix version bump script by adding bump argument for target version #5393
    • chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 #5342
    • chore(ci): GitHub Actions Release script #5384
    • chore(ci): release scripts #5364

    Contributors to this release

    Changelog

    Sourced from axios's changelog.

    [1.2.2] - 2022-12-29

    Fixed

    • fix(ci): fix release script inputs #5392
    • fix(ci): prerelease scipts #5377
    • fix(ci): release scripts #5376
    • fix(ci): typescript tests #5375
    • fix: Brotli decompression #5353
    • fix: add missing HttpStatusCode #5345

    Chores

    • chore(ci): set conventional-changelog header config #5406
    • chore(ci): fix automatic contributors resolving #5403
    • chore(ci): improved logging for the contributors list generator #5398
    • chore(ci): fix release action #5397
    • chore(ci): fix version bump script by adding bump argument for target version #5393
    • chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 #5342
    • chore(ci): GitHub Actions Release script #5384
    • chore(ci): release scripts #5364

    Contributors to this release

    Commits
    • 8ea4324 chore(docs): added latest release notes
    • 45c4948 chore: build new version
    • 6f74cb1 chore(ci): set conventional-changelog header config; (#5406)
    • 8de391f chore(ci): fix automatic contributors resolving; (#5403)
    • 341f735 chore(ci): improved logging for the contributors list generator;
    • 46085e6 chore(ci): fix release action;
    • f12d01e chore(ci): fix version bump script by adding bump argument for target version;
    • 75217e6 fix(ci): fix release script inputs;
    • c1fc33c chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2
    • 45b29db GitHub Actions Release script; (#5384)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • ⬆️ Bump eslint from 8.30.0 to 8.31.0

    ⬆️ Bump eslint from 8.30.0 to 8.31.0

    Bumps eslint from 8.30.0 to 8.31.0.

    Release notes

    Sourced from eslint's releases.

    v8.31.0

    Features

    • 52c7c73 feat: check assignment patterns in no-underscore-dangle (#16693) (Milos Djermanovic)
    • b401cde feat: add options to check destructuring in no-underscore-dangle (#16006) (Morten Kaltoft)
    • 30d0daf feat: group properties with values in parentheses in key-spacing (#16677) (Francesco Trotta)

    Bug Fixes

    • 35439f1 fix: correct syntax error in prefer-arrow-callback autofix (#16722) (Francesco Trotta)
    • 87b2470 fix: new instance of FlatESLint should load latest config file version (#16608) (Milos Djermanovic)

    Documentation

    • 4339dc4 docs: Update README (GitHub Actions Bot)
    • 4e4049c docs: optimize code block structure (#16669) (Sam Chen)
    • 54a7ade docs: do not escape code blocks of formatters examples (#16719) (Sam Chen)
    • e5ecfef docs: Add function call example for no-undefined (#16712) (Elliot Huffman)
    • a3262f0 docs: Add mastodon link (#16638) (Amaresh S M)
    • a14ccf9 docs: clarify files property (#16709) (Sam Chen)
    • 3b29eb1 docs: fix npm link (#16710) (Abdullah Osama)
    • a638673 docs: fix search bar focus on Esc (#16700) (Shanmughapriyan S)
    • f62b722 docs: country flag missing in windows (#16698) (Shanmughapriyan S)
    • 4d27ec6 docs: display zh-hans in the docs language switcher (#16686) (Percy Ma)
    • 8bda20e docs: remove manually maintained anchors (#16685) (Percy Ma)
    • b68440f docs: User Guide Getting Started expansion (#16596) (Ben Perlmutter)

    Chores

    • 65d4e24 chore: Upgrade @​eslint/eslintrc@​1.4.1 (#16729) (Brandon Mills)
    • 8d93081 chore: fix CI failure (#16721) (Sam Chen)
    • 8f17247 chore: Set up automatic updating of README (#16717) (Nicholas C. Zakas)
    • 4cd87cb ci: bump actions/stale from 6 to 7 (#16713) (dependabot[bot])
    • fd20c75 chore: sort package.json scripts in alphabetical order (#16705) (Darius Dzien)
    • 10a5c78 chore: update ignore patterns in eslint.config.js (#16678) (Milos Djermanovic)
    Changelog

    Sourced from eslint's changelog.

    v8.31.0 - December 31, 2022

    • 65d4e24 chore: Upgrade @​eslint/eslintrc@​1.4.1 (#16729) (Brandon Mills)
    • 35439f1 fix: correct syntax error in prefer-arrow-callback autofix (#16722) (Francesco Trotta)
    • 87b2470 fix: new instance of FlatESLint should load latest config file version (#16608) (Milos Djermanovic)
    • 8d93081 chore: fix CI failure (#16721) (Sam Chen)
    • 4339dc4 docs: Update README (GitHub Actions Bot)
    • 8f17247 chore: Set up automatic updating of README (#16717) (Nicholas C. Zakas)
    • 4e4049c docs: optimize code block structure (#16669) (Sam Chen)
    • 54a7ade docs: do not escape code blocks of formatters examples (#16719) (Sam Chen)
    • 52c7c73 feat: check assignment patterns in no-underscore-dangle (#16693) (Milos Djermanovic)
    • e5ecfef docs: Add function call example for no-undefined (#16712) (Elliot Huffman)
    • a3262f0 docs: Add mastodon link (#16638) (Amaresh S M)
    • 4cd87cb ci: bump actions/stale from 6 to 7 (#16713) (dependabot[bot])
    • a14ccf9 docs: clarify files property (#16709) (Sam Chen)
    • 3b29eb1 docs: fix npm link (#16710) (Abdullah Osama)
    • fd20c75 chore: sort package.json scripts in alphabetical order (#16705) (Darius Dzien)
    • a638673 docs: fix search bar focus on Esc (#16700) (Shanmughapriyan S)
    • f62b722 docs: country flag missing in windows (#16698) (Shanmughapriyan S)
    • 4d27ec6 docs: display zh-hans in the docs language switcher (#16686) (Percy Ma)
    • 8bda20e docs: remove manually maintained anchors (#16685) (Percy Ma)
    • b401cde feat: add options to check destructuring in no-underscore-dangle (#16006) (Morten Kaltoft)
    • b68440f docs: User Guide Getting Started expansion (#16596) (Ben Perlmutter)
    • 30d0daf feat: group properties with values in parentheses in key-spacing (#16677) (Francesco Trotta)
    • 10a5c78 chore: update ignore patterns in eslint.config.js (#16678) (Milos Djermanovic)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • ⬆️ Bump eslint from 8.29.0 to 8.30.0

    ⬆️ Bump eslint from 8.29.0 to 8.30.0

    Bumps eslint from 8.29.0 to 8.30.0.

    Release notes

    Sourced from eslint's releases.

    v8.30.0

    Features

    • 075ef2c feat: add suggestion for no-return-await (#16637) (Daniel Bartholomae)
    • 7190d98 feat: update globals (#16654) (Sébastien Règne)

    Bug Fixes

    • 1a327aa fix: Ensure flat config unignores work consistently like eslintrc (#16579) (Nicholas C. Zakas)
    • 9b8bb72 fix: autofix recursive functions in no-var (#16611) (Milos Djermanovic)

    Documentation

    • 6a8cd94 docs: Clarify Discord info in issue template config (#16663) (Nicholas C. Zakas)
    • ad44344 docs: CLI documentation standardization (#16563) (Ben Perlmutter)
    • 293573e docs: fix broken line numbers (#16606) (Sam Chen)
    • fa2c64b docs: use relative links for internal links (#16631) (Percy Ma)
    • 75276c9 docs: reorder options in no-unused-vars (#16625) (Milos Djermanovic)
    • 7276fe5 docs: Fix anchor in URL (#16628) (Karl Horky)
    • 6bef135 docs: don't apply layouts to html formatter example (#16591) (Tanuj Kanti)
    • dfc7ec1 docs: Formatters page updates (#16566) (Ben Perlmutter)
    • 8ba124c docs: update the prefer-const example (#16607) (Pavel)
    • e6cb05a docs: fix css leaking (#16603) (Sam Chen)

    Chores

    • f2c4737 chore: upgrade @​eslint/eslintrc@​1.4.0 (#16675) (Milos Djermanovic)
    • ba74253 chore: standardize npm script names per #14827 (#16315) (Patrick McElhaney)
    • 0d9af4c ci: fix npm v9 problem with file: (#16664) (Milos Djermanovic)
    • 90c9219 refactor: migrate off deprecated function-style rules in all tests (#16618) (Bryan Mishkin)
    Changelog

    Sourced from eslint's changelog.

    v8.30.0 - December 16, 2022

    • f2c4737 chore: upgrade @​eslint/eslintrc@​1.4.0 (#16675) (Milos Djermanovic)
    • 1a327aa fix: Ensure flat config unignores work consistently like eslintrc (#16579) (Nicholas C. Zakas)
    • 075ef2c feat: add suggestion for no-return-await (#16637) (Daniel Bartholomae)
    • ba74253 chore: standardize npm script names per #14827 (#16315) (Patrick McElhaney)
    • 6a8cd94 docs: Clarify Discord info in issue template config (#16663) (Nicholas C. Zakas)
    • 0d9af4c ci: fix npm v9 problem with file: (#16664) (Milos Djermanovic)
    • 7190d98 feat: update globals (#16654) (Sébastien Règne)
    • ad44344 docs: CLI documentation standardization (#16563) (Ben Perlmutter)
    • 90c9219 refactor: migrate off deprecated function-style rules in all tests (#16618) (Bryan Mishkin)
    • 9b8bb72 fix: autofix recursive functions in no-var (#16611) (Milos Djermanovic)
    • 293573e docs: fix broken line numbers (#16606) (Sam Chen)
    • fa2c64b docs: use relative links for internal links (#16631) (Percy Ma)
    • 75276c9 docs: reorder options in no-unused-vars (#16625) (Milos Djermanovic)
    • 7276fe5 docs: Fix anchor in URL (#16628) (Karl Horky)
    • 6bef135 docs: don't apply layouts to html formatter example (#16591) (Tanuj Kanti)
    • dfc7ec1 docs: Formatters page updates (#16566) (Ben Perlmutter)
    • 8ba124c docs: update the prefer-const example (#16607) (Pavel)
    • e6cb05a docs: fix css leaking (#16603) (Sam Chen)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • ⬆️ Bump eslint from 8.28.0 to 8.29.0

    ⬆️ Bump eslint from 8.28.0 to 8.29.0

    Bumps eslint from 8.28.0 to 8.29.0.

    Release notes

    Sourced from eslint's releases.

    v8.29.0

    Features

    • 49a07c5 feat: add allowParensAfterCommentPattern option to no-extra-parens (#16561) (Nitin Kumar)
    • e6a865d feat: prefer-named-capture-group add suggestions (#16544) (Josh Goldberg)
    • a91332b feat: In no-invalid-regexp validate flags also for non-literal patterns (#16583) (trosos)

    Documentation

    • 0311d81 docs: Configuring Plugins page intro, page tweaks, and rename (#16534) (Ben Perlmutter)
    • 57089b1 docs: add a property assignment example for camelcase rule (#16605) (Milos Djermanovic)
    • b6ab030 docs: add docs codeowners (#16601) (Strek)
    • 6380c87 docs: fix sitemap and feed (#16592) (Milos Djermanovic)
    • ade621d docs: perf debounce the search query (#16586) (Shanmughapriyan S)
    • fbcf3ab docs: fix searchbar clear button (#16585) (Shanmughapriyan S)
    • f894035 docs: HTTPS link to yeoman.io (#16582) (Christian Oliff)
    • de12b26 docs: Update configuration file pages (#16509) (Ben Perlmutter)
    • 1ae9f20 docs: update correct code examples for no-extra-parens rule (#16560) (Nitin Kumar)

    Chores

    • 7628403 chore: add discord channel link (#16590) (Amaresh S M)
    • f5808cb chore: fix rule doc headers check (#16564) (Milos Djermanovic)
    Changelog

    Sourced from eslint's changelog.

    v8.29.0 - December 2, 2022

    • 0311d81 docs: Configuring Plugins page intro, page tweaks, and rename (#16534) (Ben Perlmutter)
    • 57089b1 docs: add a property assignment example for camelcase rule (#16605) (Milos Djermanovic)
    • b6ab030 docs: add docs codeowners (#16601) (Strek)
    • 7628403 chore: add discord channel link (#16590) (Amaresh S M)
    • 49a07c5 feat: add allowParensAfterCommentPattern option to no-extra-parens (#16561) (Nitin Kumar)
    • 6380c87 docs: fix sitemap and feed (#16592) (Milos Djermanovic)
    • e6a865d feat: prefer-named-capture-group add suggestions (#16544) (Josh Goldberg)
    • ade621d docs: perf debounce the search query (#16586) (Shanmughapriyan S)
    • a91332b feat: In no-invalid-regexp validate flags also for non-literal patterns (#16583) (trosos)
    • fbcf3ab docs: fix searchbar clear button (#16585) (Shanmughapriyan S)
    • f894035 docs: HTTPS link to yeoman.io (#16582) (Christian Oliff)
    • de12b26 docs: Update configuration file pages (#16509) (Ben Perlmutter)
    • f5808cb chore: fix rule doc headers check (#16564) (Milos Djermanovic)
    • 1ae9f20 docs: update correct code examples for no-extra-parens rule (#16560) (Nitin Kumar)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • ⬆️ Bump axios from 1.2.0 to 1.2.1

    ⬆️ Bump axios from 1.2.0 to 1.2.1

    Bumps axios from 1.2.0 to 1.2.1.

    Release notes

    Sourced from axios's releases.

    v1.2.1

    [1.2.1] - 2022-12-05

    Changed

    • feat(exports): export mergeConfig #5151

    Fixed

    • fix(CancelledError): include config #4922
    • fix(general): removing multiple/trailing/leading whitespace #5022
    • fix(headers): decompression for responses without Content-Length header #5306
    • fix(webWorker): exception to sending form data in web worker #5139

    Refactors

    • refactor(types): AxiosProgressEvent.event type to any #5308
    • refactor(types): add missing types for static AxiosError.from method #4956

    Chores

    • chore(docs): remove README link to non-existent upgrade guide #5307
    • chore(docs): typo in issue template name #5159

    Contributors to this release

    Changelog

    Sourced from axios's changelog.

    [1.2.1] - 2022-12-05

    Changed

    • feat(exports): export mergeConfig #5151

    Fixed

    • fix(CancelledError): include config #4922
    • fix(general): removing multiple/trailing/leading whitespace #5022
    • fix(headers): decompression for responses without Content-Length header #5306
    • fix(webWorker): exception to sending form data in web worker #5139

    Refactors

    • refactor(types): AxiosProgressEvent.event type to any #5308
    • refactor(types): add missing types for static AxiosError.from method #4956

    Chores

    • chore(docs): remove README link to non-existent upgrade guide #5307
    • chore(docs): typo in issue template name #5159

    Contributors to this release

    Commits
    • 981265d chore: release notes
    • 1fd79d3 chore: release 1.2.1
    • a6efeaf Change AxiosProgressEvent.event type to any; (#5308)
    • 6d367b9 docs: remove README link to non-existent upgrade guide (#5307)
    • 2687460 feat: export mergeConfig (#5151)
    • 6f59cdb refactor: add missing types for static AxiosError.from method (#4956)
    • e1a4efe Fix typo in issue template name (#5159)
    • e3d7594 fix: exception to sending formdata in webworker (#5139)
    • 9041c7d Fixed decompression for responses without Content-Length header (#5306)
    • 786b113 fix: removing multiple/trailing/leading whitespaces (#5022)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • ⬆️ Bump axios from 1.1.3 to 1.2.0

    ⬆️ Bump axios from 1.1.3 to 1.2.0

    Bumps axios from 1.1.3 to 1.2.0.

    Release notes

    Sourced from axios's releases.

    v1.2.0

    [1.2.0] - 2022-11-10

    Changed

    • changed: refactored module exports #5162
    • change: re-added support for loading Axios with require('axios').default #5225

    Fixed

    • fix: improve AxiosHeaders class #5224
    • fix: TypeScript type definitions for commonjs #5196
    • fix: type definition of use method on AxiosInterceptorManager to match the the README #5071
    • fix: __dirname is not defined in the sandbox #5269
    • fix: AxiosError.toJSON method to avoid circular references #5247
    • fix: Z_BUF_ERROR when content-encoding is set but the response body is empty #5250

    Refactors

    • refactor: allowing adapters to be loaded by name #5277

    Chores

    • chore: force CI restart #5243
    • chore: update ECOSYSTEM.md #5077
    • chore: update get/index.html #5116
    • chore: update Sandbox UI/UX #5205
    • chore:(actions): remove git credentials after checkout #5235
    • chore(actions): bump actions/dependency-review-action from 2 to 3 #5266
    • chore(packages): bump loader-utils from 1.4.1 to 1.4.2 #5295
    • chore(packages): bump engine.io from 6.2.0 to 6.2.1 #5294
    • chore(packages): bump socket.io-parser from 4.0.4 to 4.0.5 #5241
    • chore(packages): bump loader-utils from 1.4.0 to 1.4.1 #5245
    • chore(docs): update Resources links in README #5119
    • chore(docs): update the link for JSON url #5265
    • chore(docs): fix broken links #5218
    • chore(docs): update and rename UPGRADE_GUIDE.md to MIGRATION_GUIDE.md #5170
    • chore(docs): typo fix line #856 and #920 #5194
    • chore(docs): typo fix #800 #5193
    • chore(docs): fix typos #5184
    • chore(docs): fix punctuation in README.md #5197
    • chore(docs): update readme in the Handling Errors section - issue reference #5260 #5261
    • chore: remove \b from filename #5207
    • chore(docs): update CHANGELOG.md #5137
    • chore: add sideEffects false to package.json #5025

    Contributors to this release

    ... (truncated)

    Changelog

    Sourced from axios's changelog.

    [1.2.0] - 2022-11-10

    Changed

    • changed: refactored module exports #5162
    • change: re-added support for loading Axios with require('axios').default #5225

    Fixed

    • fix: improve AxiosHeaders class #5224
    • fix: TypeScript type definitions for commonjs #5196
    • fix: type definition of use method on AxiosInterceptorManager to match the the README #5071
    • fix: __dirname is not defined in the sandbox #5269
    • fix: AxiosError.toJSON method to avoid circular references #5247
    • fix: Z_BUF_ERROR when content-encoding is set but the response body is empty #5250

    Refactors

    • refactor: allowing adapters to be loaded by name #5277

    Chores

    • chore: force CI restart #5243
    • chore: update ECOSYSTEM.md #5077
    • chore: update get/index.html #5116
    • chore: update Sandbox UI/UX #5205
    • chore:(actions): remove git credentials after checkout #5235
    • chore(actions): bump actions/dependency-review-action from 2 to 3 #5266
    • chore(packages): bump loader-utils from 1.4.1 to 1.4.2 #5295
    • chore(packages): bump engine.io from 6.2.0 to 6.2.1 #5294
    • chore(packages): bump socket.io-parser from 4.0.4 to 4.0.5 #5241
    • chore(packages): bump loader-utils from 1.4.0 to 1.4.1 #5245
    • chore(docs): update Resources links in README #5119
    • chore(docs): update the link for JSON url #5265
    • chore(docs): fix broken links #5218
    • chore(docs): update and rename UPGRADE_GUIDE.md to MIGRATION_GUIDE.md #5170
    • chore(docs): typo fix line #856 and #920 #5194
    • chore(docs): typo fix #800 #5193
    • chore(docs): fix typos #5184
    • chore(docs): fix punctuation in README.md #5197
    • chore(docs): update readme in the Handling Errors section - issue reference #5260 #5261
    • chore: remove \b from filename #5207
    • chore(docs): update CHANGELOG.md #5137
    • chore: add sideEffects false to package.json #5025

    Contributors to this release

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
Releases(1.0.122)
  • 1.0.122(Jul 22, 2022)

  • 1.0.121(Jul 22, 2022)

    • Code style improvement
    • Add isPlayerOnline to CitizenServer

    Full Changelog: https://github.com/PABLO-1610/cfx-api/compare/1.0.12...1.0.121

    Source code(tar.gz)
    Source code(zip)
  • 1.0.12(Jul 21, 2022)

    • Rename retrieveFive to fetchServer
    • Add many CitizenServer functions and getters
    • Add support for Cfx.re status

    Full Changelog: https://github.com/PABLO-1610/cfx-api/compare/1.0.11...1.0.12

    Source code(tar.gz)
    Source code(zip)
  • 1.0.11(Jul 20, 2022)

    • Add hasResource to FiveServer
    • Add hasAnyResourceStartingWith to FiveServer

    Full Changelog: https://github.com/PABLO-1610/cfx-api/compare/1.0.0...1.0.11

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-alpha.2(Jul 20, 2022)

    What's Changed

    • Use getters by @a9ex in https://github.com/PABLO-1610/cfx-api/pull/1

    New Contributors

    • @a9ex made their first contribution in https://github.com/PABLO-1610/cfx-api/pull/1

    Full Changelog: https://github.com/PABLO-1610/cfx-api/commits/1.0.0-alpha.2

    Source code(tar.gz)
    Source code(zip)
Owner
Pablo Zapata
French Independent Developer — @Epitech Student — @citizenfx Enthusiastic
Pablo Zapata
A Node.JS tool to automatically install or update your FiveM server artifacts.

ItsANoBrainer FiveM Artifact Updater FiveM Artifact Updater is an application created with Node.JS to easily and quickly install/update your artifacts

null 23 Dec 8, 2022
Simple learning framework on FiveM (Personnal use)

ABOUT What is this ? It' a simple framework for FiveM written in TypeScript with position sync in database. I'm trying to make it better by adding som

JustGod 2 Dec 1, 2022
This is a project based on a game Leaderboard. You can interact with an API inserting your user name and score. Built with HTML, CSS, JavaScript and WEBPACK

Leaderboard: Leaderboard project - Microverse Acces link Check the live version here Built With HTML CSS JavaScript VScode Webpack GitFlow Quick view

Vitor Guedes Madeira 11 Oct 8, 2022
Complete module to interact with the Brawl Stars API.

BrawlStars-API.js Brawlstars-api.js is a library made to interact with the Official Brawl Stars api, listing all of their endpoints in one place. ✨ Ho

Nícolas Gabriel 4 Nov 3, 2022
A simple API to interact with Stacks and CityCoins data.

CityCoins API Probably Nothing CF Workers + IttyRouter + micro-stacks + TypeScript ...and it feels good! Things to Note uses simple typed responses an

CityCoins 9 Oct 10, 2022
Get, change, and otherwise interact with your notes in Obsidian via a REST API.

Local REST API for Obsidian See our interactive docs: https://coddingtonbear.github.io/obsidian-local-rest-api/ Have you ever needed to automate inter

Adam Coddington 157 Dec 22, 2022
A standard library to interact with KaiOS 2.x and 3.x APIs.

kaios-lib A standard library to interact with KaiOS 2.x and 3.x* APIs. * 3.x support coming when there is a good dev device available for testing purp

Garrett Downs 4 Jun 3, 2022
Web3 NPM library to interact with Soonaverse.

Soonaverse - Soonaverse JavaScript/Typescript API - APLHA Please note this is APLHA and we might introduce breaking changes. Library to interact with

SoonLabs 15 Oct 28, 2022
Web3 NPM library to interact with Soonaverse.

Soonaverse - Soonaverse JavaScript/Typescript API - APLHA Please note this is APLHA and we might introduce breaking changes. Library to interact with

Soonaverse 12 Apr 27, 2022
On this page, you can save and load all the awesome books you have and save the name and the author into the local storage. this project uses Javascript to interact with the pages

Awesome Books: refactor to use JavaScript classes In this project, We add the links to the applications into the final project Getting Started if you

Cesar Valencia 8 Nov 29, 2022
Nami Wallet is a browser based wallet extension to interact with the Cardano blockchain.

Nami Wallet Nami Wallet is a browser based wallet extension to interact with the Cardano blockchain. It's an open-source project and built by Berry Po

Berry 335 Dec 29, 2022
A package that allows your bot of discord.js v13 & v14 to create the new awesome Discord Modals and interact with them

A package that allows your bot of discord.js v13 & v14 to create the new awesome Discord Modals and interact with them

MateoDeveloper 85 Dec 23, 2022
A comprehensive collection of useful tools developed with the help of Ethers.js to interact with the Ethereum Blockchain to develop great DeFi apps as quickly and easily as possible.

hudi-packages-ethersfactory How to install Installing with npm For more information on using npm check out the docs here. npm i @humandataincome/ether

HUDI 6 Mar 30, 2022
Web3.js provider to interact with the VeChain Thor protocol

web3-providers-connex Web3.js provider implemented using Connex.js. It makes it possible to use web3.js and ethers.js to interact with VeChain Thor pr

null 13 Dec 26, 2022
Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)

Homarr A homepage for your server. Demo ↗️ • Install ➡️ Join the discord! ?? Table of Contents ?? Table of Contents ?? Getting Started ℹ️ About ?? Kno

Thomas Camlong 1.6k Jan 7, 2023
A CLI to upload files to IPFS and interact with them using wbeb3.storage

Storli A CLI to upload files to IPFS and interact with them using web3.storage Storli Usage Commands Usage $ npm install -g storli $ storli COMMAND ru

Anish De 9 Aug 7, 2022
PublisherConnector is a class object that allows you to interact with the CHILI Publisher editorObject via postMessage without the complexity of postMessage.

PublisherConnector is a class object that allows you to interact with the CHILI Editor editorObject via postMessage without the complexity of postMessage.

CHILI publish 8 Nov 24, 2022
A secondhand marketplace where you can post items for sale, interact with sellers, save items you are interested in.

Curbside - the secondhand market place that's actually pleasant to use Post items for sale, interact with sellers, save items you are interested in. A

Curbside 14 Sep 9, 2022
Open the whole new fancy chapter, in which end-user can interact lively with our quests!

Fancy Chapter - Here comes the fancy adventure! Fancy Chapter is the User Interface (UI) of TheNewsQuest app, in which user can freely interact tons o

null 4 Aug 5, 2022