MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Alternative for request package/library

    Scheduled Pinned Locked Moved Development
    5 Posts 3 Posters 628 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      Miller
      last edited by

      Hi all,
      I was thinking of developing a new module which would require some OAuth calls to a RESTfull API.
      I see most module so far use the “request” package for this.
      Since the request package/library is deprecated, it would make no sense to start a new module with this package, only to have to update it within a few months.

      What would be the best alternative to request, to get started with a new module?

      Thx in advance.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Miller
        last edited by

        @Miller the nodejs library for request mentions an issue to find possible alternatives

        https://github.com/request/request/issues/3142

        seems Axios gets many mentions…

        just because its depricated doesn’t mean it doesn’t work… just won’t work sometime in the future…
        as mentioned in the discussion of the issue, some large company tools/products use request and won’t be changing anytime soon…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          Miller @sdetweil
          last edited by

          @sdetweil Thank you for your answer.

          I’ve seen Axios gets many mentions indeed, also got seems to have something going
          https://github.com/request/request/issues/3143

          I was hoping, maybe someone else had encountered a similar dilemma already, and would gladly follow the path the majority of developers would take. Makes little sense if every new/modified module uses another package I would think.

          Maybe I will just start with request anyway (many examples) or give Axios a try.

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by A Former User

            Already I’m slowly moving my modules to use Axios and http(s) instead of request. But many legacy node modules are still using request.

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              Miller @Guest
              last edited by

              @Sean thank you for your input

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy